protected virtual void Dispose(bool disposing) { if (disposing) { //Release managed resources and call Dispose for member variables } //Release unmanaged resources if (running_ && ExecutorNative.executor_stopped(nativeInstance_) != 0) { ExecutorNative.executor_stop(nativeInstance_); } ExecutorNative.executor_destruct(nativeInstance_); #if KEOKEN keokenManager_?.Dispose(); #endif }
/// <summary> /// Stops the node; that includes all activies, such as synchronization and networking. /// </summary> public void Stop() { ExecutorNative.executor_stop(nativeInstance_); }