private void CallReceiveCallbacks(MessageStore store, IMessage message) { PluginResult result = new PluginResult(PluginResult.Status.OK); result.Message = MessageFactory.Instance.MakeJObject(message).ToString(); result.KeepCallback = true; foreach (ReceiveCallback receiveCallback in receiveCallbacks) { if (!store.GetAllReaders(message).Contains(receiveCallback.Receiver)) { if (receiveCallback.Channel == message.Channel && (string.IsNullOrEmpty(receiveCallback.Subchannel) || receiveCallback.Subchannel == message.Subchannel)) { DispatchCommandResult(result, receiveCallback.CallbackId); } } } }