int Native.IRtdServer.ServerStart(Native.IRTDUpdateEvent callbackObject) { try { lock (_thisLock) { IRTDUpdateEvent arg = ReflectCallbackObject(callbackObject); int result = ServerStart(arg); return(result); } } catch (Exception exception) { OnError(RTDMethods.ServerStart, exception); throw new COMRtdServerException(RTDMethods.Unknown, exception); } }
/// <summary> /// Wrap native proxy into NetOffice wrapper /// </summary> /// <param name="callbackObject">given proxy from host application</param> /// <returns>ICOMObject proxy wrapper instance</returns> protected internal IRTDUpdateEvent ReflectCallbackObject(Native.IRTDUpdateEvent callbackObject) { return(new IRTDUpdateEvent(Factory, null, callbackObject, IRTDUpdateEvent.LateBindingApiWrapperType)); }
/// <summary> /// Wrap native proxy into NetOffice wrapper /// </summary> /// <param name="callbackObject">given proxy from host application</param> /// <returns>ICOMObject proxy wrapper instance</returns> protected internal IRTDUpdateEvent ReflectCallbackObject(Native.IRTDUpdateEvent callbackObject) { return(Factory.CreateKnownObjectFromComProxy <IRTDUpdateEvent>(null, callbackObject, typeof(IRTDUpdateEvent))); }