Exemplo n.º 1
0
            public Task OnStateChanged(Copren.Net.Core.Connection.Client client, bool fromServer, object state)
            {
                // Ignore peer updates
                if (!fromServer)
                {
                    return(Task.CompletedTask);
                }

                return(Task.FromResult(true));
            }
Exemplo n.º 2
0
 public Task OnPeerStateChanged(Copren.Net.Core.Connection.Client client, Guid peerId, object state)
 {
     _logger.Information("Peer {PeerId:s} reported state = {Position}", peerId, state);
     return(Task.CompletedTask);
 }