public static IAsyncOperation <AppServiceConnectionStatus> OpenForExtendedExecutionAsync() { IAppServiceConnectionExtendedExecution appServiceConnectionStatus = (IAppServiceConnectionExtendedExecution)WindowsRuntimeMarshal.GetActivationFactory(typeof(AppServiceConnection)); Guid guid = typeof(IAsyncOperation <AppServiceConnectionStatus>).GUID; return(appServiceConnectionStatus.OpenForExtendedExecutionAsync(ref guid)); }
public static IAsyncOperation <AppServiceConnectionStatus> OpenForExtendedExecutionAsync() { Guid iid = InteropHelper.GetIID <IAsyncOperation <AppServiceConnectionStatus> >(); IAppServiceConnectionExtendedExecution appServiceConnectionStatus = InteropHelper.GetActivationFactory <IAppServiceConnectionExtendedExecution>(typeof(AppServiceConnection)); appServiceConnectionStatus.OpenForExtendedExecutionAsync(ref iid, out var result); return(InteropHelper.CastWinRTObject <IAsyncOperation <AppServiceConnectionStatus> >(result)); }