public void TestCreateProxyImplementationAsyncAwaitMethods() { Type result = TypeService.BuildProxyImplementation(typeof(IMyRemoteAsyncAwaitTestService)); IMyRemoteAsyncAwaitTestService instance = (IMyRemoteAsyncAwaitTestService)Activator.CreateInstance(result, new object[2]); Assert.NotNull(instance); }
private void OnCompositionHostClient_SessionCreated(object contractSession, Session.SessionEventArgs e) { currentAsyncAwaitTestServiceClientProxyInstance = e.SessionContract.GetSessionInstance <IMyRemoteAsyncAwaitTestService>(); onConnectionEstablished.SetResult(true); }