public GrpcNetworkServer(PeerService.PeerServiceBase serverService, IConnectionService connectionService, AuthInterceptor authInterceptor) { _serverService = serverService; _connectionService = connectionService; _authInterceptor = authInterceptor; Logger = NullLogger <GrpcNetworkServer> .Instance; EventBus = NullLocalEventBus.Instance; }
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>(); }