示例#1
0
 internal GrpcServiceBinder(
     IEndpointRouteBuilder builder,
     IGrpcMethodModelFactory <TService> serviceModelFactory,
     ServerCallHandlerFactory <TService> serverCallHandlerFactory,
     ServiceMethodsRegistry serviceMethodsRegistry,
     ILoggerFactory loggerFactory)
 {
     _builder = builder;
     _serviceMethodsRegistry = serviceMethodsRegistry;
     _logger = loggerFactory.CreateLogger(GetType());
     _serverCallHandlerFactory = serverCallHandlerFactory;
     _serviceModelFactory      = serviceModelFactory;
 }
示例#2
0
 internal GrpcServiceBinder(IEndpointRouteBuilder builder, ServerCallHandlerFactory <TService> serverCallHandlerFactory)
 {
     _builder = builder;
     _serverCallHandlerFactory = serverCallHandlerFactory;
 }
 internal GrpcServiceBinder(IEndpointRouteBuilder builder, ServerCallHandlerFactory <TService> serverCallHandlerFactory, IGrpcMethodInvokerFactory <TService> serviceInvoker)
 {
     _builder = builder;
     _serverCallHandlerFactory = serverCallHandlerFactory;
     _serviceInvokerFactory    = serviceInvoker;
 }