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 abstract class SimpleValue<TValue> | |
| { | |
| private TValue _value; | |
| protected SimpleValue(TValue value) | |
| { | |
| Value = value; | |
| } | |
| private TValue Value |
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
| --------------------------- | |
| Microsoft Visual Studio | |
| --------------------------- | |
| The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information. | |
| 1) The element 'metadata' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd' has invalid child element 'created' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd'. List of possible elements expected: 'iconUrl, dependencies, licenseUrl, projectUrl, title, tags, summary, owners' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd'. | |
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.Net; | |
| using EasyHttp.Http; | |
| using Should.Fluent; | |
| using Xunit; | |
| namespace Tests | |
| { | |
| public class HttpClientTests | |
| { | |
| [Fact] |
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
| JsonFx.Serialization.SerializationException: JsonFx.Serialization.SerializationException : Object reference not set to an instance of an object. | |
| ---- System.NullReferenceException : Object reference not set to an instance of an object. | |
| at JsonFx.Serialization.DataWriter`1.Write(Object data) | |
| Codecs\DefaultCodec.cs(89,0): at EasyHttp.Codecs.DefaultCodec.Encode(Object data, String contentType) | |
| Http\HttpRequest.cs(198,0): at EasyHttp.Http.HttpRequest.SetupBody() | |
| Http\HttpRequest.cs(215,0): at EasyHttp.Http.HttpRequest.MakeRequest() | |
| Http\HttpClient.cs(149,0): at EasyHttp.Http.HttpClient.ProcessRequest() | |
| Http\HttpClient.cs(114,0): at EasyHttp.Http.HttpClient.Post(String uri, Object data, String contentType) |
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
| internal class MyModuleLocator : INancyModuleLocator | |
| { | |
| private readonly FooModule _fooModule; | |
| public MyModuleLocator(IFoo foo) | |
| { | |
| _fooModule = new FooModule(foo); | |
| } | |
| public IEnumerable<NancyModule> GetModules() |
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
| [Export(typeof (INancyModuleLocator))] | |
| public class MefNancyModuleLocator : INancyModuleLocator | |
| { | |
| [ImportMany(typeof (NancyModule), AllowRecomposition = true)] | |
| private IEnumerable<NancyModule> _modules; | |
| public IEnumerable<NancyModule> GetModules() | |
| { | |
| return _modules; | |
| } |
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
| PasteNodesCommand test = BuildDefaultTestSubject(); | |
| bool eventRaised = false; | |
| test.CanExecuteChanged += (sender, args) => eventRaised = true; | |
| ClipboardHasItemsChangesTo(true); | |
| Assert.IsTrue(eventRaised); |
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 ClipboardBehavior : Behavior<Control> | |
| { | |
| public static readonly DependencyProperty CopyCommandProperty = | |
| DependencyProperty.Register("CopyCommand", | |
| typeof (ICommand), | |
| typeof (ClipboardBehavior), | |
| new PropertyMetadata(default(ICommand))); | |
| public static readonly DependencyProperty CutCommandProperty = | |
| DependencyProperty.Register("CutCommand", |
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 TPart ComposePartWith<TPart, TImport>(TImport import) | |
| { | |
| var childContainer = new CompositionContainer(Container); | |
| childContainer.ComposeExportedValue(import); | |
| return childContainer.GetExportedValue<TPart>(); | |
| } |
NewerOlder