Adaptive.ReactiveTrader.EventStore.Connection.EventStoreConnectionFactory.Create C# (CSharp) Метод

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

public static Create ( EventStoreLocation eventStoreLocation, IEventStoreConfiguration configuration ) : IEventStoreConnection
eventStoreLocation EventStoreLocation
configuration IEventStoreConfiguration
Результат IEventStoreConnection
        public static IEventStoreConnection Create(EventStoreLocation eventStoreLocation, IEventStoreConfiguration configuration)
        {
            IEventStore eventStore;

            if (eventStoreLocation == EventStoreLocation.Embedded)
            {
                //eventStore = new EmbeddedEventStore();
                throw new NotSupportedException();
            }
            else
            {
                eventStore = new ExternalEventStore(EventStoreUri.FromConfig(configuration));
            }

            return eventStore.Connection;
        }
    }
EventStoreConnectionFactory