示例#1
0
        public Service(ISupervisorServiceConfiguration configuration, ISupervisorProxy proxy)
        {
            Configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
            Proxy         = proxy ?? throw new ArgumentNullException(nameof(proxy));

            Instance = this;
        }
示例#2
0
        public Service(ISupervisorProxy supervisor, ISupervisorServiceConfiguration configuration)
        {
            if (supervisor == null)
                throw new ArgumentNullException("supervisor");

            if (configuration == null)
                throw new ArgumentNullException("configuration");
            
            Supervisor = supervisor;
            ServiceConfiguration = configuration;
            ServiceInstance = this;
        }