Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of of <see cref="IClassAspectSwitchBuilder"/>.
 /// </summary>
 /// <param name="switchList">Switch list to be indexed on.</param>
 /// <param name="lck">Lock for the switch list.</param>
 /// <returns>The initialized <see cref="IClassAspectSwitchBuilder"/>.</returns>
 public static IClassAspectSwitchBuilder InitializeClassAspectSwitch(IList <bool> switchList, ISmartReadWriteLock lck)
 {
     return(new ClassAspectSwitch(switchList, lck));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClassAspectSwitch"/> class.
 /// </summary>
 /// <param name="switchList">List of all registered switches</param>
 /// <param name="lck">Lock of registered switch list</param>
 public ClassAspectSwitch(IList <bool> switchList, ISmartReadWriteLock lck)
 {
     switchLock      = lck ?? throw new ArgumentNullException("lck");
     this.switchList = switchList ?? throw new ArgumentNullException("switchList");
 }