/// <summary>
 ///     Creates a new instance.
 /// </summary>
 /// <param name="events">the ResponseEvents to store the events in</param>
 /// <param name="actionCompleteEventClass">the type of event that indicates that all events have been received</param>
 /// <param name="thread">the thread to interrupt when the actionCompleteEventClass has been received</param>
 public ResponseEventHandler(ManagerConnection connection, ManagerActionEvent action, AutoResetEvent autoEvent)
 {
     this.connection = connection;
     this.events = new ResponseEvents();
     this.action = action;
     this.autoEvent = autoEvent;
 }
 public void Free()
 {
     connection = null;
     autoEvent = null;
     action = null;
     events.Events.Clear();
     events.Response = null;
     events = null;
 }
Example #3
0
 /// <summary>
 ///     Creates a new instance.
 /// </summary>
 /// <param name="events">the ResponseEvents to store the events in</param>
 /// <param name="actionCompleteEventClass">the type of event that indicates that all events have been received</param>
 /// <param name="thread">the thread to interrupt when the actionCompleteEventClass has been received</param>
 public ResponseEventHandler(ManagerConnection connection, ManagerActionEvent action, AutoResetEvent autoEvent)
 {
     this.connection = connection;
     this.events     = new ResponseEvents();
     this.action     = action;
     this.autoEvent  = autoEvent;
 }
Example #4
0
 public void Free()
 {
     connection = null;
     autoEvent  = null;
     action     = null;
     events.Events.Clear();
     events.Response = null;
     events          = null;
 }