Example #1
0
        /// <summary>
        /// Implements the Dispose pattern
        /// </summary>
        /// <param name="disposing">Whether this object is being disposed via a call to Dispose
        /// or garbage collected.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (!this._isDisposed)
            {
                if (disposing && _shouldDispose)
                {
                    if (Handler != null)
                    {
                        Handler.Dispose();
                        Handler = null;
                    }

                    RunningOperationEndedEvent.Dispose();
                }
                this._isDisposed = true;
            }
        }
Example #2
0
 public PlanExecutor()
 {
     Handler = new ExecutorHandler(SynchronizingObject, Options.ClientName, Options.ServiceHost, Options.ServicePort);
     Handler.OnControlPlanCancel += OnControlPlanCancel;
     Handler.OnError             += OnErrorReceived;
 }