public AnalyticsManager(string uniqueId, DeviceAppAttributes deviceAppAttributes, string encryptionKey) { _deviceAppAttributes = deviceAppAttributes; GlobalSequenceId = 0; EncryptionKey = encryptionKey; _eventStoreManager = new EventStoreManager(uniqueId, EncryptionKey); }
/// <summary> /// Initializes a new instance of the <see cref="Subscription" /> class. /// </summary> /// <param name="eventStoreManager">The event store manager.</param> /// <param name="configurationRepositoryResolver">The configuration repository resolver.</param> public Subscription(IEventStoreManager eventStoreManager, Func <INewConfigurationRepository> configurationRepositoryResolver) { this.EventStoreManager = eventStoreManager; this.ConfigurationRepositoryResolver = configurationRepositoryResolver; this.HttpClient = new HttpClient(); this.HttpClient.DefaultRequestHeaders.Accept.Clear(); this.HttpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); }
public EventProcessorService(IEventStoreManager eventStoreManager, IBankAccountRepository bankAccountRepository) { InitializeComponent(); this.eventStoreManager = eventStoreManager; this.bankAccountRepository = bankAccountRepository; }
public DecksController(IEventStoreManager eventStoreManager, IDeckGenerator deckGenerator, IDeckEventsProcessor deckEventsProcessor) { _eventStoreManager = eventStoreManager; _deckGenerator = deckGenerator; _deckEventsProcessor = deckEventsProcessor; }