Esempio n. 1
0
 public override async Task Begin(object obj, SynchronousOptions opts = null)
 {
     if (LeftSynchronizer is BinarySynchronizer && LeftSynchronizer.WillBegin(obj, opts))
     {
         await LeftSynchronizer.Begin(obj, opts);
     }
     else
     {
         await RightSynchronizer.Begin(obj, opts);
     }
 }
Esempio n. 2
0
 public override Task Begin(object obj, SynchronousOptions opts = null)
 {
     return(Task.WhenAll(LeftSynchronizer.Begin(obj, opts), RightSynchronizer.Begin(obj, opts)));
 }