Example #1
0
        internal void HandleEventAsynchronously(TSIP_Event @event)
        {
            if (Callback != null)
            {
#if WINDOWS_PHONE // FIXME: .NET Compact Framework does not support invoking delegates asynchronously.
                new System.Threading.Thread(delegate()
                {
                    Callback(@event);
                }).Start();
#else
                Callback.BeginInvoke(@event, AsyncCallbackForDelegate, null);
#endif
            }
        }
Example #2
0
 internal void HandleEventAsynchronously(TSIP_Event @event)
 {
     if (Callback != null)
     {
     #if WINDOWS_PHONE // FIXME: .NET Compact Framework does not support invoking delegates asynchronously.
         new System.Threading.Thread(delegate()
         {
             Callback(@event);
         }).Start();
     #else
         Callback.BeginInvoke(@event, AsyncCallbackForDelegate, null);
     #endif
     }
 }