Example #1
0
 public int Invoke([In, MarshalAs(UnmanagedType.Interface)] IVsInvokablePrivate pInvokable)
 {
     return(Application.Current.Dispatcher.Invoke(new Func <int>(pInvokable.Invoke)));
 }
Example #2
0
 public int Invoke([In, MarshalAs(UnmanagedType.Interface)] IVsInvokablePrivate pInvokable)
 {
     syncContext.Send(o => pInvokable.Invoke(), null);
     return(0);
 }