public void WriteGreeting(NodeGreetingMessage greetingMessage) { var messageFrame = new MessageFrame { RawMessage = greetingMessage.Serialize() }; _queueSocket.Write(messageFrame); }
public async Task WriteGreetingAsync(NodeGreetingMessage greetingMessage, CancellationToken cancellationToken) { var serialized = greetingMessage.Serialize(); await _streamSocket.WriteAsync(serialized, 0, serialized.Length, cancellationToken); }
public void WriteGreeting(NodeGreetingMessage greetingMessage) { var serialized = greetingMessage.Serialize(); _streamSocket.Write(serialized, 0, serialized.Length); }