Ejemplo n.º 1
0
        public async Task InitializeAsync()
        {
            await Fixture.CreateServer();

            StarWarsClient = Fixture.GetStarWarsClient();
            ChatClient     = Fixture.GetChatClient();
        }
Ejemplo n.º 2
0
        public async Task InitializeAsync()
        {
            await Fixture.CreateServer();

            // make sure the buffer always contains the same message
            Fixture.Server.Services.GetService <Chat>().AddMessage(InitialMessage);

            if (ChatClient == null)
            {
                // then create the chat client
                ChatClient = Fixture.GetChatClient(true);
            }
        }