コード例 #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)
 {
 }