Ejemplo n.º 1
0
        public RpcNode(RpcActor localActor,
                       IActorDirectory actorDirectory,
                       IServiceCatalogProvider serviceCatalog,
                       IServiceDirectory serviceDirectory,
                       IServiceProxyGenerator proxyGenerator,
                       RpcMethodFixture methodFixture)
            : base(localActor)
        {
            if (actorDirectory == null)
            {
                throw new ArgumentNullException("actorDirectory");
            }
            if (serviceCatalog == null)
            {
                throw new ArgumentNullException("serviceCatalog");
            }
            if (serviceDirectory == null)
            {
                throw new ArgumentNullException("serviceDirectory");
            }
            if (proxyGenerator == null)
            {
                throw new ArgumentNullException("proxyGenerator");
            }
            if (methodFixture == null)
            {
                throw new ArgumentNullException("methodFixture");
            }

            _actorDirectory   = actorDirectory;
            _serviceCatalog   = serviceCatalog;
            _serviceDirectory = serviceDirectory;
            _proxyGenerator   = proxyGenerator;
            _methodFixture    = methodFixture;
        }
Ejemplo n.º 2
0
        public RpcServer(RpcActor localActor, IRateLimiter rateLimiter, IActorDirectory actorDirectory, IServiceCatalogProvider serviceCatalog, IServiceDirectory serviceDirectory, RpcMethodFixture methodFixture)
            : base(localActor, rateLimiter)
        {
            if (actorDirectory == null)
            {
                throw new ArgumentNullException("actorDirectory");
            }
            if (serviceCatalog == null)
            {
                throw new ArgumentNullException("serviceCatalog");
            }
            if (serviceDirectory == null)
            {
                throw new ArgumentNullException("serviceDirectory");
            }
            if (methodFixture == null)
            {
                throw new ArgumentNullException("methodFixture");
            }

            _actorDirectory   = actorDirectory;
            _serviceCatalog   = serviceCatalog;
            _serviceDirectory = serviceDirectory;
            _methodFixture    = methodFixture;
        }
Ejemplo n.º 3
0
        public RpcClient(RpcActor localActor, IRateLimiter rateLimiter, IActorDirectory actorDirectory, IServiceProxyGenerator proxyGenerator, RpcMethodFixture methodFixture)
            : base(localActor, rateLimiter)
        {
            if (actorDirectory == null)
            {
                throw new ArgumentNullException("actorDirectory");
            }
            if (proxyGenerator == null)
            {
                throw new ArgumentNullException("proxyGenerator");
            }
            if (methodFixture == null)
            {
                throw new ArgumentNullException("methodFixture");
            }

            _actorDirectory = actorDirectory;
            _proxyGenerator = proxyGenerator;
            _methodFixture  = methodFixture;
        }