Example #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;
        }
Example #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;
        }
Example #3
0
 public PipelineInstallationService(
     IServiceDirectory serviceDirectory,
     IInstallationPipeline installationPipeline,
     ILogger <PipelineInstallationService> logger)
 {
     _serviceDirectory     = serviceDirectory ?? throw new ArgumentNullException(nameof(serviceDirectory));
     _installationPipeline = installationPipeline ?? throw new ArgumentNullException(nameof(installationPipeline));
     _logger = logger;
 }
Example #4
0
 public RpcNode(RpcActor localActor,
                IActorDirectory actorDirectory,
                IServiceCatalogProvider serviceCatalog,
                IServiceDirectory serviceDirectory,
                IServiceProxyGenerator proxyGenerator)
     : this(localActor, actorDirectory, serviceCatalog, serviceDirectory, proxyGenerator,
            new RpcMethodFixture(
                new MethodLocatorExtractor(),
                new MethodArgumentEncoder(RpcActor.DefaultObjectEncoder),
                new MethodArgumentDecoder(RpcActor.DefaultObjectDecoder)))
 {
 }
Example #5
0
        //public ISessionFactory ISessionFactory { get; set; }

        public ServiceDirectoryManager(IServiceDirectory IServiceDirectory)
        {
            this.IServiceDirectory = IServiceDirectory;
            //// this.ISessionFactory = ISessionFactory;
        }
Example #6
0
 public static string GetInstallationDirectory(
     this IServiceDirectory serviceDirectory,
     params string?[] extraPaths)
 => serviceDirectory.GetInstallationDirectory(