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