public static IEventFlowOptions UseEventStoreEventStore( this IEventFlowOptions eventFlowOptions, Uri uri) { return(eventFlowOptions .UseEventStoreEventStore(uri, ConnectionSettings.Default)); }
public static IEventFlowOptions UseEventStoreEventStore( this IEventFlowOptions eventFlowOptions, IPEndPoint ipEndPoint) { return(eventFlowOptions .UseEventStoreEventStore(ipEndPoint, ConnectionSettings.Default)); }
public static IEventFlowOptions ConfigureEventStore(this IEventFlowOptions options) { string eventStoreUrl = "tcp://localhost:1113"; string connectionString = $"ConnectTo={eventStoreUrl}; HeartBeatTimeout=500"; Uri eventStoreUri = GetUriFromConnectionString(connectionString); var connectionSettings = ConnectionSettings.Create() .EnableVerboseLogging() .KeepReconnecting() .KeepRetrying() .SetDefaultUserCredentials(new UserCredentials("admin", "changeit")) .Build(); IEventFlowOptions eventFlowOptions = options .UseEventStoreEventStore(eventStoreUri, connectionSettings); return(eventFlowOptions); }