public Service(ISupervisorServiceConfiguration configuration, ISupervisorProxy proxy) { Configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); Proxy = proxy ?? throw new ArgumentNullException(nameof(proxy)); Instance = this; }
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; }