Пример #1
0
 internal EventWaitHandle(object owner, string key, MalockClient malock)
 {
     if (malock == null)
     {
         throw new ArgumentNullException("Malock can not be null");
     }
     if (key == null)
     {
         throw new ArgumentNullException("Key is absolutely not allowed to be null");
     }
     if (key.Length <= 0)
     {
         throw new ArgumentOutOfRangeException("Key is absolutely not allowed to be an empty string");
     }
     this.owner           = owner;
     this.Key             = key;
     this.malock          = malock;
     this.malock.Aborted += this.ProcessAbort;
     do
     {
         this.ackstatetimer          = new Timer();
         this.ackstatetimer.Tick    += this.OnAckstatetimerTick;
         this.ackstatetimer.Interval = Malock.AckPipelineInterval;
         this.ackstatetimer.Start();
     } while (false);
 }
Пример #2
0
 protected internal static EventWaitHandle NewDefaultWaitHandle(object owner, string key, MalockClient malock)
 {
     return(new DefaultWaitHandle(owner, key, malock));
 }
Пример #3
0
 public DefaultWaitHandle(object owner, string key, MalockClient malock) : base(owner, key, malock)
 {
 }