Пример #1
0
 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);
     }
 }
Пример #2
0
 /// <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));
 }
Пример #3
0
 /// <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)));
 }