public Task SendMessageAsync(IOutgoingMessage message) { try { this.Socket.Send(message.GetOutData()); } catch (Exception e) { Console.WriteLine(e.Message); Environment.Exit(-1); } return(Task.CompletedTask); }
public Task SendMessageAsync(IOutgoingMessage message) { // TODO - Make async this.Socket.Send(message.GetOutData()); return(Task.CompletedTask); }
public void SendMessage(IOutgoingMessage message) { this.Socket.Send(message.GetOutData()); }