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 Autofac; | |
namespace Syringe | |
{ | |
/// <summary> | |
/// Bootstrapper, which obtains the dynamic CloudModule setting and loads the module into the Autofac Container. | |
/// </summary> | |
/// <remarks> | |
/// This required IBootstrapPostContainer, as it required access to the IContainer instance. IStartable runs before the instance is available. |
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.Net.Http; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json.Linq; | |
using NUnit.Framework; | |
namespace Tests |
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.Runtime.Remoting.Messaging; | |
namespace Nimble.Messaging | |
{ | |
public static class CorrelationContext | |
{ | |
public const string RequestIdKey = "Correlation.RequestId"; | |
public const string MessageIdKey = "Correlation.MessageId"; |
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
<Target Name="AfterBuild"> | |
<Message Text="@(Content)" Importance="high" Condition="%(Content.Extension) == '.sql'" /> | |
<Error Condition="%(Content.Extension) == '.sql'" Text="Nothing should be marked as Content, check your scripts are marked as Embedded Resource" /> | |
</Target> |
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; | |
namespace Awesomeness | |
{ | |
public static class LanguageExtensions | |
{ | |
public static TR? Safe<T, TR>(this T? target, Func<T, TR> accessor) | |
where T : struct where TR : struct | |
{ |
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.Linq; | |
namespace Utils | |
{ | |
public class Transpose<TKey, TValue> : Dictionary<TKey, Func<TValue>> | |
{ | |
public IEnumerable<TValue> Intersect(IEnumerable<TKey> keys) | |
{ |
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 LazyActionResult : ActionResult | |
{ | |
readonly Func<ActionResult> _innerResult; | |
ActionResult _cachedResult; | |
public LazyActionResult(Func<ActionResult> innerResult) | |
{ | |
if (innerResult == null) throw new ArgumentNullException("innerResult"); | |
_innerResult = innerResult; | |
} |
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 IRedirectProcessor | |
{ | |
string Process(ResultExecutedContext context); | |
} |
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 Autofac; | |
using Autofac.Core; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace Testage | |
{ | |
[TestClass] | |
public abstract class ConcernForResolvingLoggers | |
{ | |
protected ContainerBuilder Builder; |
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.Linq; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
namespace Slumber.Tests | |
{ | |
public class MagicData | |
{ | |
public Department[] Departments { get; set; } |