public virtual void Dispose() { if (!this.IsDisposed()) { ComHelper.Release(this.implementation); this.implementation = null; } }
/// <summary> /// Invoked the method with the specified methodName on the wrapped COM object. /// </summary> /// <param name="methodName"></param> /// <param name="args"></param> /// <returns></returns> public object InvokeMethod(string methodName, params object[] args) { return(ComHelper.InvokeMethod(this.Wrapped, methodName, args)); }
public void Start(ComCallbackBase callback) { ComHelper.InvokeMethod(this.controllerInstance, "Start", new ComCallbackWrapper(callback)); }
public void StartWithCommandLine(ComCallbackBase callback, string commandLine) { ComHelper.InvokeMethod(this.controllerInstance, "StartWithCommandLine", new ComCallbackWrapper(callback), commandLine); }
public void Exit() { ComHelper.InvokeMethod(this.controllerInstance, "Exit"); }