public async Task CloseAsync()
        {
            await Task.Delay(1).ConfigureAwait(false);

            lock (MessageDataSent)
                MessageDataSent.Clear();
        }
 public Task CloseAsync()
 {
     lock (MessageDataSent)
         MessageDataSent.Clear();
     return(Task.FromResult <object>(null));
 }