예제 #1
0
 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>();
 }
예제 #2
0
파일: CronusHost.cs 프로젝트: Elders/Cronus
 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);
 }
예제 #3
0
 public HostHelper(IRpcHost <TMessage> host)
 {
     this.Host = host;
 }
예제 #4
0
 public GenericServiceHost(IRpcHost <TMessage> host)
 {
     this.Host = host;
 }