コード例 #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));
 }