This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class AsyncStreamCopier | |
| { | |
| public event EventHandler Completed; | |
| private readonly Stream input; | |
| private readonly Stream output; | |
| private byte[] buffer = new byte[4096]; | |
| public AsyncStreamCopier(Stream input, Stream output) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Root object, builds a webapi delegating handler | |
| public static void BootstrapCache(this HttpConfiguration configuration, | |
| Cache cache, | |
| IEnumerable<CacheHandler.Rule> rules, | |
| RewriteResponse rewriteResponse, //Delegates to clean up Func<Func< eye searing signatures | |
| RewriteRequest rewriteRequest, | |
| MonitorCacheOperation monitor, | |
| Func<string,string> secrets) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var parser = | |
| UntilOpenQuote | |
| (RecChar('h') | |
| (RecChar('t') | |
| (RecChar('t') | |
| (RecChar('p') | |
| (RecChar(':') | |
| (RecChar('/') | |
| (RecChar('/') | |
| (UntilCloseQuote |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Mutations | |
| { | |
| readonly BrowserSession session; | |
| public Mutations(BrowserSession session) | |
| { | |
| this.session = session; | |
| } | |
| public Action ClickOnAnElement(string css, int ms = 200) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void AppDomain_UnhandledException(Object sender, UnhandledExceptionEventArgs e){ | |
| this.error = ((Exception)e.ExceptionObject).Message; | |
| if(this.thread.IsAlive){ | |
| this.thread.Abort(); | |
| this.timerhotkey.Stop(); | |
| Thread.CurrentThread.Join(); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ReorderSupportingResourcePart : Handles<Hypermedia.ReorderSupportingResourcePart> | |
| { | |
| static Register route = () => "supportingresources/{supportingresourceid}/reorderresourcepart/{partid}"; | |
| readonly IDocumentStore store; | |
| public ReorderSupportingResourcePart(IDocumentStore store) { this.store = store; } | |
| public HttpResponseMessage Post(string supportingresourceid, int partid, Hypermedia.ReorderSupportingResourcePart input) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface constants | |
| { | |
| int a { get; } | |
| } | |
| public class myconstants1 : constants | |
| { | |
| public int a { get { return 1; } } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class constants | |
| { | |
| public static readonly int somevalue; | |
| public constants() | |
| { | |
| somevalue = 20; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Web; | |
| using MarkupProcessor.Model.Markup; | |
| using Pathways.Features.Shared.DocumentAggregation; | |
| using Pathways.Model; | |
| using Raven.Abstractions.Indexing; | |
| using Raven.Client.Connection; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ParseTextSpec_Bold_Italic_Subscript_superscript : with_hambledown | |
| { | |
| Because of = () => parsing( | |
| @" | |
| H1. Heading 1 | |
| text before se __strong emph__ Some after _emph_ | |
| H1. This section has superscript and subscript. | |
| This is some content ^Superscript Text^ text after. ~Subscript Text~ this should be some text. -this is struck through- | |
| H1. Thrid H1 | |
| {This should be a no break section} |