public bool f_sendRequestToJob(string job_name, MESSAGE_ACTION action, object input) { //int[] job_IDs = this.JobStore.f_job_getIdsByName(job_name); //if (job_IDs.Length > 0) //{ // Message m = new Message(this.f_getFormID(), job_IDs, action, input); // this.JobStore.f_job_sendMessage(m); // return true; //} return(false); }
public Message(int senderId, int[] job_receive_IDs, MESSAGE_ACTION action, object input = null, SENDER_TYPE senderType = SENDER_TYPE.IS_FORM) { this.Type = MESSAGE_TYPE.REQUEST; Action = action; SenderType = senderType; SenderId = senderId; JobReceiveID = job_receive_IDs; Id = Guid.NewGuid(); Output = new MessageResult(); Input = input; }