public Signaler(IServiceProvider provider, ISignalsProvider signals) { _provider = provider ?? throw new ArgumentNullException(nameof(provider)); _signals = signals ?? throw new ArgumentNullException(nameof(signals)); }
/// <summary> /// Creates a new instance of the default ISignaler service class. /// </summary> /// <param name="provider">Service provider to use for retrieving services.</param> /// <param name="signals">Implementation class to use for retrieving /// types from their string representations.</param> public Signaler(IServiceProvider provider, ISignalsProvider signals) { _provider = provider; _signals = signals; }
/// <summary> /// Constructor creating an object requiring a signals provider to be able to fetch all slots that exists. /// </summary> /// <param name="signalProvider">Slot provider, providing all slots that exists in the system.</param> public Vocabulary(ISignalsProvider signalProvider) { _signalProvider = signalProvider; }