override public void SendMessage(Message message)
        {
            if (Name != null && message.Sender == null)
            {
                message.Sender = Name;
            }

            if (message.Type == MessageType.COMMAND && message.SubType == (int)Server.CommandName.STOP_TRACE_TO_CLIENT)
            {
                _tracing2Client = false;
            }

            ModifyMessage?.Invoke(this, message);

            base.SendMessage(message);
        }
Exemple #2
0
        public static async Task <Message> ModifyCollectorMessage(long collectorId, long messageId, ModifyMessage message)
        {
            Message response = await SurveyMonkeyRequest.PatchRequest <Message>(string.Format("/collectors/{0}/messages/{1}", collectorId, messageId), message);

            return(response);
        }