Exemple #1
0
        public static ClientProxy <TService> CreateClientProxy <TService>(GrpcClientOptions options, int timeoutInterval = 1200000,
                                                                          int hearbeatInterval = 10000) where TService : class
        {
            var opt = new GrpcClientConnectionFactoryOptions(options);

            return(CreateClientProxy <TService>(opt, timeoutInterval, hearbeatInterval));
        }
Exemple #2
0
 public static ClientProxy <TService> CreateClientProxy <TService>(GrpcClientConnectionFactoryOptions options, int timeoutInterval = 1200000,
                                                                   int hearbeatInterval = 10000)
 {
     return(new GrpcClientProxy <TService>(options.Factory,
                                           new SimpleOptions <NetRpcClientOption>(new NetRpcClientOption
     {
         TimeoutInterval = timeoutInterval,
         HearbeatInterval = hearbeatInterval
     }
                                                                                  ), null, NullLoggerFactory.Instance));
 }
Exemple #3
0
 public static ClientProxy <TService> CreateClientProxy <TService>(GrpcClientConnectionFactoryOptions options, int timeoutInterval = 1200000,
                                                                   int hearbeatInterval = 10000) where TService : class
 {
     return(new GrpcClientProxy <TService>(options.Factory,
                                           new SimpleOptions <NClientOption>(new NClientOption
     {
         TimeoutInterval = timeoutInterval,
         HearbeatInterval = hearbeatInterval
     }
                                                                             ), new NullOptions <ClientMiddlewareOptions>(),
                                           ActionExecutingContextAccessor.Default,
                                           null !,
                                           NullLoggerFactory.Instance));
 }