예제 #1
0
        async Task IRestoreNM.RestoreMessageAsync(string payLoad)
        {
            await RestoreAsync();

            IClientUpdateGame client = MainContainer.Resolve <IClientUpdateGame>();
            await client.UpdateGameAsync(payLoad);
        }
예제 #2
0
        async Task INewGameNM.NewGameReceivedAsync(string data)
        {
            if (OpeningScreen != null)
            {
                throw new BasicBlankException("The opening screen should have been closed.  Rethink");
            }
            await RestoreAsync(); //take a risk here.

            IClientUpdateGame clientUpdate = MainContainer.Resolve <IClientUpdateGame>();
            await clientUpdate.UpdateGameAsync(data);
        }