Esempio n. 1
0
 public SynchronizedValveAdapter(IValveSubject <T> valve, object gate)
 {
     _valve = valve;
     _gate  = gate;
 }
Esempio n. 2
0
 public static IValveSubject <T> Synchronize <T>(this IValveSubject <T> valve) => Synchronize(valve, new object());
Esempio n. 3
0
 public static IValveSubject <T> Synchronize <T>(this IValveSubject <T> valve, object gate) => new SynchronizedValveAdapter <T>(valve, gate);
Esempio n. 4
0
 public SynchronizedValveAdapter(IValveSubject <T> valve, object gate)
 {
     this.valve = valve;
     this.gate  = gate;
 }