public MessageHandler(ApolloPlugin plugin, string messageLabel, MessageReceivedDelegate onMessageReceived, MessageReceivedErrorDelegate onError = null) { OnMessageReceived = onMessageReceived ?? throw new ArgumentNullException(nameof(onMessageReceived)); MessageFilter = m => m.LabelMatches(messageLabel); FilterName = $"Label == {messageLabel}"; }
public MessageHandler(ApolloPlugin plugin, MessageReceivedDelegate onMessageReceived, MessageReceivedErrorDelegate onError = null) { Plugin = plugin; OnMessageReceived = onMessageReceived ?? throw new ArgumentNullException(nameof(onMessageReceived)); }