public RpcHostedService(IRpcHost host, IOptions <RpcServerOptions> options, IRpcServiceRegister rpcServiceRegister, ILoggerFactory loggerFactory) { this._host = host ?? throw new ArgumentNullException(nameof(host)); this._rpcServiceRegister = rpcServiceRegister; this._options = options.Value; this._logger = loggerFactory.CreateLogger <RpcHostedService>(); }
public CronusHost( CronusBooter booter, IConsumer<IApplicationService> appServices, IConsumer<ICronusEventStoreIndex> systemIndices, IConsumer<IEventStoreIndex> indices, IConsumer<IProjection> projections, IConsumer<IPort> ports, IConsumer<ISaga> sagas, IConsumer<IGateway> gateways, IConsumer<ITrigger> triggers, IConsumer<ISystemAppService> systemAppServices, IConsumer<ISystemSaga> systemSagas, IConsumer<ISystemPort> systemPorts, IConsumer<ISystemTrigger> systemTriggers, IConsumer<ISystemProjection> systemProjections, IConsumer<IMigrationHandler> migrations, IOptionsMonitor<CronusHostOptions> cronusHostOptions, IServiceProvider serviceProvider, IRpcHost rpcHost) { this.booter = booter; this.appServices = appServices ?? throw new ArgumentNullException(nameof(appServices)); this.systemIndices = systemIndices; this.indices = indices; this.projections = projections ?? throw new ArgumentNullException(nameof(projections)); this.ports = ports ?? throw new ArgumentNullException(nameof(ports)); this.sagas = sagas ?? throw new ArgumentNullException(nameof(sagas)); this.gateways = gateways ?? throw new ArgumentNullException(nameof(gateways)); this.triggers = triggers; this.systemAppServices = systemAppServices; this.systemSagas = systemSagas; this.systemPorts = systemPorts; this.systemTriggers = systemTriggers; this.systemProjections = systemProjections; this.migrations = migrations; this.serviceProvider = serviceProvider; this.rpcHost = rpcHost; this.hostOptions = cronusHostOptions.CurrentValue; cronusHostOptions.OnChange(Changed); }
public HostHelper(IRpcHost <TMessage> host) { this.Host = host; }
public GenericServiceHost(IRpcHost <TMessage> host) { this.Host = host; }