Ejemplo n.º 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));
        }
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }