Ejemplo n.º 1
0
 public RpcServer(IRpcServerSettings settings,
                  ILogger logger,
                  ITcpServerChannelFactory channelFactory,
                  ICertificateStore certificateStore,
                  IEnumerable <IRpcRequestObserver> requestHandlers,
                  ITcpServerEventLoopGroupFactory eventEventLoopGroupFactory)
     : base(channelFactory, logger, eventEventLoopGroupFactory)
 {
     _requestHandlers    = requestHandlers;
     Settings            = settings;
     _cancellationSource = new CancellationTokenSource();
     _certificate        = certificateStore.ReadOrCreateCertificateFile(settings.PfxFileName);
 }