示例#1
0
        public AzureBus(
            IAzureNetQLogger logger,
            IConventions conventions,
            IRpc rpc,
            ISendReceive sendReceive,
            IAzureAdvancedBus advancedBus,
            IConnectionConfiguration connectionConfiguration,
            ISerializer serializer)
        {
            Preconditions.CheckNotNull(logger, "logger");
            Preconditions.CheckNotNull(conventions, "conventions");
            Preconditions.CheckNotNull(rpc, "rpc");
            Preconditions.CheckNotNull(sendReceive, "sendReceive");
            Preconditions.CheckNotNull(advancedBus, "advancedBus");
            Preconditions.CheckNotNull(connectionConfiguration, "connectionConfiguration");
            Preconditions.CheckNotNull(serializer, "serializer");

            this.logger                  = logger;
            this.conventions             = conventions;
            this.rpc                     = rpc;
            this.sendReceive             = sendReceive;
            this.advancedBus             = advancedBus;
            this.connectionConfiguration = connectionConfiguration;
            this.serializer              = serializer;
            this.exceptionHandler        = new ExceptionHandler(logger);
        }
示例#2
0
        public SendReceive(
            IAzureAdvancedBus advancedBus,
            IConnectionConfiguration connectionConfiguration,
            IHandlerCollectionFactory handlerCollectionFactory,
            ITypeNameSerializer typeNameSerializer,
            ISerializer serializer)
        {
            Preconditions.CheckNotNull(advancedBus, "advancedBus");
            Preconditions.CheckNotNull(connectionConfiguration, "connectionConfiguration");
            Preconditions.CheckNotNull(handlerCollectionFactory, "handlerCollectionFactory");
            Preconditions.CheckNotNull(typeNameSerializer, "typeNameSerializer");
            Preconditions.CheckNotNull(serializer, "serializer");

            this.advancedBus = advancedBus;
            this.handlerCollectionFactory = handlerCollectionFactory;
            this.typeNameSerializer       = typeNameSerializer;
            this.serializer = serializer;
        }
示例#3
0
文件: Rpc.cs 项目: tymoor/AzureNetQ
        public Rpc(
            IConventions conventions,
            IAzureAdvancedBus advancedBus,
            IConnectionConfiguration connectionConfiguration,
            ISerializer serializer,
            IAzureNetQLogger logger)
        {
            Preconditions.CheckNotNull(conventions, "conventions");
            Preconditions.CheckNotNull(advancedBus, "advancedBus");
            Preconditions.CheckNotNull(connectionConfiguration, "configuration");
            Preconditions.CheckNotNull(serializer, "serializer");
            Preconditions.CheckNotNull(logger, "logger");

            this.conventions             = conventions;
            this.advancedBus             = advancedBus;
            this.connectionConfiguration = connectionConfiguration;
            this.serializer       = serializer;
            this.logger           = logger;
            this.exceptionHandler = new ExceptionHandler(this.logger);
        }