Exemple #1
0
    public async void Send()
    {
        try
        {
            var channel = new Channel("127.0.0.1:50504", ChannelCredentials.Insecure);

            var    client = new OpenMatchClient(new Frontend.FrontendClient(channel));
            Player player = PlayerUtil.GeneratePlayer();
            client.CreatePlayer(player);
            await client.GetUpdates(player, Response);

            channel.ShutdownAsync().Wait();
        }
        catch (Exception e)
        {
            Response.text = "exception: " + e.Message;
        }
    }
 internal MatchmakingController(string endpoint)
 {
     m_Client        = new MatchmakingClient(endpoint);
     openMatchClient = new OpenMatchClient(endpoint);
 }