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 IGenerateMyId | |
| { | |
| string GenerateId(); | |
| } | |
| //This is used within my IoC registration; could be wherever you setup doc store | |
| public RavenDbRegistry(string connectionStringName) | |
| { | |
| ... | |
| var generator = new MultiTypeHiLoKeyGenerator(documentStore, 32); |
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 FizzBuzz | |
| { | |
| public class ExtensionsDemo | |
| { | |
| public static void TestString() | |
| { | |
| var s = "hello"; | |
| var ok = s.HasValue(); |
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 ok = s.HasValue(); | |
| if (ok) return; |
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 FooEditRequestModel | |
| ... | |
| public class FooEditInputModel : FooEditRequestModel | |
| .... | |
| public class FooEditViewModel : FooEditInputModel, IRedirectable | |
| .... |
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
| class ConfiguringTheDistributorWithTheFluentApi : IConfigureThisEndpoint, AsA_Publisher | |
| { | |
| public void Init() | |
| { | |
| Configure.With() | |
| .DefineEndpointName(ConfigurationManager.AppSettings["NServiceBus.Instance"]) | |
| .RunDistributorWithNoWorkerOnItsEndpoint(); | |
| } | |
| } |
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 connectionString = ConfigurationManager.AppSettings[connectionStringName]; | |
| var parser = ConnectionStringParser<RavenConnectionStringOptions>.FromConnectionString(connectionString); | |
| parser.Parse(); | |
| var documentStore = new DocumentStore | |
| { | |
| ApiKey = parser.ConnectionStringOptions.ApiKey, | |
| Url = parser.ConnectionStringOptions.Url, | |
| }; |
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 Microsoft.VisualStudio.TestTools.UnitTesting; | |
| using Raven.Client.Document; | |
| using Raven.Client.Embedded; | |
| using Raven.Client.Indexes; | |
| using System.Reflection; | |
| using Raven.Abstractions.Indexing; | |
| using System.Linq; | |
| using RavenIssues; | |
| using Raven.Client.Linq; |
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 Raven.Abstractions.Indexing; | |
| using Raven.Client; | |
| using Raven.Client.Embedded; | |
| using Raven.Client.Indexes; | |
| using Raven.Client.Linq; | |
| using Xunit; |
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 Raven.Abstractions.Indexing; | |
| using Raven.Client; | |
| using Raven.Client.Embedded; | |
| using Raven.Client.Indexes; | |
| using Raven.Client.Linq; | |
| using Xunit; |
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 Raven.Abstractions.Indexing; | |
| using Raven.Client; | |
| using Raven.Client.Embedded; | |
| using Raven.Client.Indexes; | |
| using Raven.Client.Linq; | |
| using Xunit; |