示例#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 GrpcServerServiceTests()
 {
     _networkServer     = GetRequiredService <IAElfNetworkServer>();
     _service           = GetRequiredService <PeerService.PeerServiceBase>();
     _blockchainService = GetRequiredService <IBlockchainService>();
     _peerPool          = GetRequiredService <IPeerPool>();
     _eventBus          = GetRequiredService <ILocalEventBus>();
     _acc = GetRequiredService <IAccountService>();
 }
示例#3
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;
        }