コード例 #1
0
ファイル: Simple Services.cs プロジェクト: yannduran/VSEmbed
 public int Invoke([In, MarshalAs(UnmanagedType.Interface)] IVsInvokablePrivate pInvokable)
 {
     return(Application.Current.Dispatcher.Invoke(new Func <int>(pInvokable.Invoke)));
 }
コード例 #2
0
ファイル: Simple Services.cs プロジェクト: yannduran/VSEmbed
 public int Invoke([In, MarshalAs(UnmanagedType.Interface)] IVsInvokablePrivate pInvokable)
 {
     syncContext.Send(o => pInvokable.Invoke(), null);
     return(0);
 }