This file contains 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> | |
/// Implements a heuristic for ninject property injection. | |
/// </summary> | |
public interface IObjectBuilderPropertyHeuristic : IInjectionHeuristic | |
{ | |
/// <summary> | |
/// Gets the registered types. | |
/// </summary> | |
/// <value>The registered types.</value> | |
IList<Type> RegisteredTypes |
This file contains 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> | |
/// Component logger which allows to log component outputs. | |
/// </summary> | |
public class ComponentLogger : ILog, IInitializable | |
{ | |
private static readonly IDictionary<string, IEnumerable<IAppender>> ComponentAppender = new Dictionary<string, IEnumerable<IAppender>>(); | |
private readonly IComponentLoggerAppenderFactory appenderFactory; | |
private readonly IComponentLoggerContext context; | |
private readonly string loggerName; |
This file contains 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
[DebuggerDisplay("Count = {Count}")] | |
[ComVisible(false)] | |
public class SafeObservableCollection<T> : ObservableCollection<T> | |
{ | |
private readonly Dispatcher dispatcher; | |
public SafeObservableCollection() | |
: this(Enumerable.Empty<T>()) | |
{ | |
} |
This file contains 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 ClientProxyInterceptor : IInterceptor | |
{ | |
private readonly Func<ICommunicationObject> proxyCreator; | |
private readonly Type typeToProxy; | |
private ICommunicationObject proxyInstance; | |
public ClientProxyInterceptor(Func<ICommunicationObject> proxyCreator, Type typeToProxy) | |
{ | |
this.typeToProxy = typeToProxy; | |
this.proxyCreator = proxyCreator; |
This file contains 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 IConfigurator | |
{ | |
T GetInstance<T>(); | |
void Inject<T>(T instance); | |
} |
This file contains 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
User-Agent: Fiddler | |
Accept: image/png | |
Host: localhost:52649 | |
GET http://localhost:52649/menu | |
throws UnsupportedMediaTypeException |
This file contains 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 (var stream = new MemoryStream()) | |
using (var writer = new StreamWriter(stream) { AutoFlush = true }) | |
{ | |
writer.Write(message.Xml); | |
stream.Seek(0, SeekOrigin.Begin); | |
this.documentSession.StoreAttachement( | |
"someId", null, stream, new RavenJObject { { "Content-Type", "application/xml" }, }); | |
} |
This file contains 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
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/StructuralSearch/Pattern/=23B254B63645A7449313D9A6F88A5C0C/@KeyIndexDefined">True</s:Boolean> | |
<s:String x:Key="/Default/PatternsAndTemplates/StructuralSearch/Pattern/=23B254B63645A7449313D9A6F88A5C0C/Comment/@EntryValue">Replace Mock Field with FakeItEasy</s:String> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/StructuralSearch/Pattern/=23B254B63645A7449313D9A6F88A5C0C/CustomPatternPlaceholder/=fieldName/@KeyIndexDefined">True</s:Boolean> | |
<s:String x:Key="/Default/PatternsAndTemplates/StructuralSearch/Pattern/=23B254B63645A7449313D9A6F88A5C0C/CustomPatternPlaceholder/=fieldName/Properties/=CaseSensitive/@EntryIndexedValue">True</s:String> | |
<s:String x:Key="/Default/PatternsAndTempla |
This file contains 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
[assembly: WithBus] |
This file contains 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 Here | |
{ | |
public class Root | |
{ | |
public string Foo { get; set; } | |
public Child Child { get; set; } |
OlderNewer