/// <summary> /// Configures <see cref="IEventStore"/> to be using <see cref="EventStore">Azure Tables</see> /// </summary> /// <param name="eventStoreConfiguration"><see cref="EventStoreConfiguration"/> to configure</param> /// <param name="connectionString"><see cref="string">ConnectionString</see> for connecting to your Azure Storage account</param> /// <param name="databaseName">Name of <see cref="string">Database</see></param> /// <returns>Chained <see cref="EventStoreConfiguration"/></returns> public static EventStoreConfiguration UsingTables(this EventStoreConfiguration eventStoreConfiguration, string connectionString, string databaseName) { eventStoreConfiguration.EventStore = typeof(EventStore); Configure.Instance.Container.Bind <ICanProvideConnectionDetails>(() => new Tuple <string, string>(connectionString, databaseName)); return(eventStoreConfiguration); }
/// <summary> /// Configures <see cref="IEventStore"/> to be using <see cref="EventStore">Azure Tables</see> /// </summary> /// <param name="eventStoreConfiguration"><see cref="EventStoreConfiguration"/> to configure</param> /// <param name="connectionString"><see cref="string">ConnectionString</see> for connecting to your Azure Storage account</param> /// <returns>Chained <see cref="EventStoreConfiguration"/></returns> public static EventStoreConfiguration UsingTables(this EventStoreConfiguration eventStoreConfiguration, string connectionString) { eventStoreConfiguration.EventStore = typeof(EventStore); Configure.Instance.Container.Bind <ICanProvideConnectionString>(() => connectionString); return(eventStoreConfiguration); }