public override Task SendAllAsync(string methodName, object[] args, CancellationToken cancellationToken = default) { if (IsInvalidArgument(methodName)) { throw new ArgumentException(NullOrEmptyStringErrorMessage, nameof(methodName)); } return(ServiceConnectionContainer.WriteAsync( new BroadcastDataMessage(null, SerializeAllProtocols(methodName, args)))); }
protected Task WriteAsync <T>(T message) where T : ServiceMessage, IMessageWithTracingId => WriteCoreAsync(message, m => ServiceConnectionContainer.WriteAsync(message));
public override Task SendAllAsync(string methodName, object[] args, CancellationToken cancellationToken = default) { if (IsInvalidArgument(methodName)) { return(Task.CompletedTask); } return(_serviceConnectionManager.WriteAsync( new BroadcastDataMessage(null, SerializeAllProtocols(methodName, args)))); }