AggregateSource.EventStore.Framework.EmbeddedEventStore.Start C# (CSharp) Метод

Start() публичный статический Метод

public static Start ( ) : void
Результат void
        public static void Start()
        {
            var node = EmbeddedVNodeBuilder.
                AsSingleNode().
                OnDefaultEndpoints().
                RunInMemory().
                Build();
            node.Start();
            node.StartAndWaitUntilReady().Wait();
            Node = node;
            Credentials = new UserCredentials("admin", "changeit");
            var settings = ConnectionSettings.Create()
                .SetDefaultUserCredentials(Credentials)
                .KeepReconnecting()
                .KeepRetrying()
                .UseConsoleLogger()
                .Build();
            var connection = EmbeddedEventStoreConnection.Create(Node, settings);
            connection.ConnectAsync().Wait();
            Connection = connection;
        }

Usage Example

 public void BeforeTest(TestDetails testDetails)
 {
     EmbeddedEventStore.Start();
 }
All Usage Examples Of AggregateSource.EventStore.Framework.EmbeddedEventStore::Start
EmbeddedEventStore