예제 #1
0
 public static AckMessage CreateAckMessage(ServerMessage msg, string serverName) => new(msg.MessageId, serverName);
예제 #2
0
 public async Task SendAck(ServerMessage message)
 {
     var ack = AckMessage.CreateAckMessage(message, _serverName);
     await _writeQueue.SendMessageAsync(JsonSerializer.Serialize(ack));
 }