Hololens/Lib/UdpSockets.cs
//###########################################################################################
/// <summary>
/// Awaitable method that indicate when socket is disconnected.
/// </summary>
Awaitable method that indicate when socket is disconnected.
Awaitable method that indicate when socket is disconnected .
public async Task AwaitDisconnection()
        {
            while (_connected)
            {
                await Task.Delay(1);
            }
        }
public async Task AwaitDisconnection ( ) { while ( _connected ) { await Task . Delay ( 1 ) ; } }
Awaitable method that indicate when socket is disconnected.
Awaitable method that indicate when socket is disconnected .