示例#1
0
        public async Task Test()
        {
            await YieldToClient();

            var client = CFacade.ActivateProxy <IModelOwner>(TestLifetime, ClientProtocol);

            await YieldToServer();

            var server = SFacade.InitBind(new ModelOwner(SFacade.Activator), TestLifetime, ServerProtocol);

            await Wait();

            await YieldToClient();

            var liveModel = await client.M(TestLifetime);

            await YieldToClient();

            liveModel.Values.Add("Test");

            await Wait();

            Assert.AreEqual("Test", ourState);
        }