Ejemplo n.º 1
0
        public void TestCreateProxyImplementationAsyncAwaitMethods()
        {
            Type result = TypeService.BuildProxyImplementation(typeof(IMyRemoteAsyncAwaitTestService));

            IMyRemoteAsyncAwaitTestService instance = (IMyRemoteAsyncAwaitTestService)Activator.CreateInstance(result, new object[2]);

            Assert.NotNull(instance);
        }
Ejemplo n.º 2
0
 private void OnCompositionHostClient_SessionCreated(object contractSession, Session.SessionEventArgs e)
 {
     currentAsyncAwaitTestServiceClientProxyInstance = e.SessionContract.GetSessionInstance <IMyRemoteAsyncAwaitTestService>();
     onConnectionEstablished.SetResult(true);
 }