Beispiel #1
0
        public static ClientProxy <TService> CreateClientProxy <TService>(MQOptions options, int timeoutInterval = 1200000, int hearbeatInterval = 10000)
            where TService : class
        {
            var opt = new RabbitMQClientConnectionFactoryOptions(options, NullLoggerFactory.Instance);

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