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
| namespace Your.Product.Namespace | |
| { | |
| public class WorkerRole : RoleEntryPoint, IDisposable | |
| { | |
| readonly TaskCompletionSource<bool> _endRole = new TaskCompletionSource<bool>(); | |
| readonly ManualResetEvent _runCompleteEvent = new ManualResetEvent(false); | |
| IDisposable _app; | |
| bool _disposed = false; | |
| ~WorkerRole() |
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
| <style type="text/css"> | |
| #legend { | |
| background-color: #3C5A76; | |
| border: 2px solid #cccc; | |
| color: #EEEEEE; | |
| font-weight: bold; | |
| position: absolute; | |
| right: 50px; | |
| top: 50px; | |
| padding: 15px; |
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
| namespace YourProduct | |
| { | |
| /// <summary> | |
| /// Task retry logic | |
| /// </summary> | |
| public static class TaskHelper | |
| { | |
| /// <summary> | |
| /// Returns a task which retries the task returned by the specified task provider. | |
| /// </summary> |
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 Microsoft.Owin.Testing; | |
| using System; | |
| using System.Linq; | |
| using System.Net.Http; | |
| using Xunit; | |
| namespace {Your Project}.Tests.Fixtures { | |
| [CollectionDefinition("Test Server")] |
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 FakeItEasy; | |
| using Nancy.Owin; | |
| using Nancy.Testing; | |
| using Nancy.TinyIoc; | |
| using Owin; | |
| using System; | |
| using System.Collections.Generic; |
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.ComponentModel.Composition; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Reflection; | |
| using Autofac; | |
| namespace AFMetadata { | |
| class Program { |
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; | |
| namespace {yourapp}.Infrastructure.Caching { | |
| public interface ICache { | |
| /// <summary> | |
| /// Determines whether the specified keyformat contains key. | |
| /// </summary> | |
| /// <param name="keyformat">The keyformat.</param> | |
| /// <param name="arguments">The arguments.</param> | |
| /// <returns></returns> |
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
| /// <summary> | |
| /// </summary> | |
| /// <param name="app"></param> | |
| /// <param name="env"></param> | |
| /// <param name="loggerFactory"></param> | |
| // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. | |
| public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) | |
| { | |
| loggerFactory.AddConsole(Configuration.GetSection("Logging")); |
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.Concurrent; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using MediatR; | |
| public interface INotificationWithIdentification : INotification | |
| { | |
| Guid RequestID { get; set; } |
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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "{your project}", | |
| "type": "coreclr", | |
| "request": "launch", | |
| "cwd": "/app", | |
| "program": "/app/{your project dll}.dll", | |
| "sourceFileMap": { |