示例#1
0
        public GrpcNetworkServer(PeerService.PeerServiceBase serverService, IConnectionService connectionService, AuthInterceptor authInterceptor)
        {
            _serverService     = serverService;
            _connectionService = connectionService;
            _authInterceptor   = authInterceptor;

            Logger   = NullLogger <GrpcNetworkServer> .Instance;
            EventBus = NullLocalEventBus.Instance;
        }
示例#2
0
        public GrpcNetworkServer(IOptionsSnapshot <NetworkOptions> options, PeerService.PeerServiceBase serverService,
                                 IPeerPool peerPool, AuthInterceptor authInterceptor)
        {
            _serverService   = serverService;
            _authInterceptor = authInterceptor;
            _peerPool        = peerPool;
            _networkOptions  = options.Value;

            Logger   = NullLogger <GrpcNetworkServer> .Instance;
            EventBus = NullLocalEventBus.Instance;
        }
 public AuthInterceptorTests()
 {
     _peerPool        = GetRequiredService <IPeerPool>();
     _authInterceptor = GetRequiredService <AuthInterceptor>();
 }