/// <summary> /// <see cref="SingleDelegateWithStateContextSwitchSupplier"/> constructor /// </summary> /// <param name="switchDel">Delegate that provides the ability to switch the context of execution</param> public SingleDelegateWithStateContextSwitchSupplier(ContextSwitchWithStateDelegate switchDel) { if (switchDel == null) { throw new ArgumentNullException(nameof(switchDel)); } _switchDel = switchDel; }
/// <summary> /// Конструктор SingleDelegateWithStateContextSwitchSupplier /// </summary> /// <param name="switchDel">Делегат смены контекста</param> public SingleDelegateWithStateContextSwitchSupplier(ContextSwitchWithStateDelegate switchDel) { Contract.Requires(switchDel != null); _switchDel = switchDel; }