private void RegisterProductCategoriesProjection( ProcessingOptionsDescriptor <IBoundedContextRegistration> contextRegistration) { contextRegistration.ListeningEvents( typeof(ProductCategoryChangedEvent)) .From(_settings.ContextNames.AssetService).On(nameof(ProductCategoryChangedEvent)) .WithProjection( typeof(ProductCategoryProjection), _settings.ContextNames.AssetService); }
private void RegisterAccountsProjection( ProcessingOptionsDescriptor <IBoundedContextRegistration> contextRegistration) { contextRegistration.ListeningEvents( typeof(AccountChangedEvent)) .From(_settings.ContextNames.AccountsManagement).On(EventsRoute) .WithProjection( typeof(AccountsProjection), _settings.ContextNames.AccountsManagement); }
private void RegisterMarketStateChangedProjection(ProcessingOptionsDescriptor <IBoundedContextRegistration> contextRegistration) { contextRegistration.ListeningEvents( typeof(MarketStateChangedEvent)) .From(_settings.ContextNames.TradingEngine) .On(EventsRoute) .WithProjection( typeof(PlatformClosureProjection), _settings.ContextNames.TradingEngine); }
private void RegisterAssetPairsProjection( ProcessingOptionsDescriptor <IBoundedContextRegistration> contextRegistration) { contextRegistration.ListeningEvents( typeof(AssetPairChangedEvent)) .From(_settings.ContextNames.SettingsService) .On(EventsRoute) .WithProjection( typeof(AssetPairProjection), _settings.ContextNames.SettingsService); }
private void RegisterMarketSettingsChangedProjection( ProcessingOptionsDescriptor <IBoundedContextRegistration> contextRegistration) { contextRegistration.ListeningEvents( typeof(MarketSettingsChangedEvent)) .From(_settings.ContextNames.SettingsService) .On(nameof(MarketSettingsChangedEvent)) .WithProjection( typeof(MarketSettingsChangedProjection), _settings.ContextNames.SettingsService); }
private void RegisterEodProjection( ProcessingOptionsDescriptor <IBoundedContextRegistration> contextRegistration) { contextRegistration.ListeningEvents( typeof(EodProcessStartedEvent)) .From(_settings.ContextNames.BookKeeper) .On(EventsRoute) .WithProjection( typeof(EodStartedProjection), _settings.ContextNames.BookKeeper); }
private void RegisterProjections(ProcessingOptionsDescriptor <IBoundedContextRegistration> contextRegistration) { contextRegistration.ListeningEvents( typeof(AccountChangedEvent)) .From(_settings.ContextNames.AccountsManagement).On("events") .WithProjection( typeof(AccountChangedProjection), _settings.ContextNames.AccountsManagement); contextRegistration.ListeningEvents( typeof(MarketStateChangedEvent)) .From(_settings.ContextNames.TradingEngine).On("events") .WithProjection( typeof(MarketStateChangedProjection), _settings.ContextNames.TradingEngine); contextRegistration.ListeningEvents( typeof(TaxFileUploadedEvent)) .From(_settings.ContextNames.BookKeeper).On("events") .WithProjection( typeof(TaxFileUploadedProjection), _settings.ContextNames.BookKeeper); }
private void RegisterAssetServiceProjections( ProcessingOptionsDescriptor <IBoundedContextRegistration> contextRegistration) { contextRegistration.ListeningEvents(typeof(MarketSettingsChangedEvent)) .From(_settings.ContextNames.AssetService) .On($"{nameof(MarketSettingsChangedEvent)}{_instanceId}") .WithProjection(typeof(MarketSettingsChangedProjection), _settings.ContextNames.AssetService); contextRegistration.ListeningEvents(typeof(ProductCategoryChangedEvent)) .From(_settings.ContextNames.AssetService) .On($"{nameof(ProductCategoryChangedEvent)}{_instanceId}") .WithProjection(typeof(ProductCategoryChangedProjection), _settings.ContextNames.AssetService); contextRegistration.ListeningEvents(typeof(ProductChangedEvent)) .From(_settings.ContextNames.AssetService) .On($"{nameof(ProductChangedEvent)}{_instanceId}").WithProjection(typeof(ProductChangedProjection), _settings.ContextNames.AssetService); contextRegistration.ListeningEvents(typeof(ClientProfileChangedEvent)) .From(_settings.ContextNames.AssetService) .On($"{nameof(ClientProfileChangedEvent)}{_instanceId}") .WithProjection(typeof(ClientProfileChangedProjection), _settings.ContextNames.AssetService); contextRegistration.ListeningEvents(typeof(ClientProfileSettingsChangedEvent)) .From(_settings.ContextNames.AssetService) .On($"{nameof(ClientProfileSettingsChangedEvent)}{_instanceId}") .WithProjection(typeof(ClientProfileSettingsChangedProjection), _settings.ContextNames.AssetService); contextRegistration.ListeningEvents(typeof(TickFormulaChangedEvent)) .From(_settings.ContextNames.AssetService) .On($"{nameof(TickFormulaChangedEvent)}{_instanceId}") .WithProjection(typeof(TickFormulaChangedProjection), _settings.ContextNames.AssetService); contextRegistration.ListeningEvents(typeof(CurrencyChangedEvent)) .From(_settings.ContextNames.AssetService) .On($"{nameof(CurrencyChangedEvent)}{_instanceId}").WithProjection(typeof(CurrencyChangedProjection), _settings.ContextNames.AssetService); contextRegistration.ListeningEvents(typeof(AssetTypeChangedEvent)) .From(_settings.ContextNames.AssetService) .On($"{nameof(AssetTypeChangedEvent)}{_instanceId}").WithProjection(typeof(AssetTypeChangedProjection), _settings.ContextNames.AssetService); }