コード例 #1
0
ファイル: Program.cs プロジェクト: truonganh29388/DemoMSQueue
        private static void SendTestMsg(string id = null)
        {
            id = id ?? "667A40D1-6E53-4A2A-B899-FBEBADE4CE45";
            //  var body = new DocumentCheckMessage { Guid = Guid.Parse("667A40D1-6E53-4A2A-B899-FBEBADE4CE45") };
            var body = new DocumentCheckMessage {
                Guid = Guid.Parse(id)
            };

            body.AgencyId     = 1;
            body.CaseId       = "1";
            body.DocumentName = "Test";

            var msg = new QueueMessage(body.Serialise(), null, "1", "test", "test", 2);

            SendMessage(@".\private$\vuportal", msg);
        }
コード例 #2
0
        /// <summary>
        /// Deserializes the message.
        /// </summary>
        /// <param name="xml">A <c>String</c> containing a fragment of XML to de-serialise.</param>
        /// <returns>The DocumentCheckMessage instantiated from the deserialised XML.</returns>
        public static DocumentCheckMessage Deserialize(string xml)
        {
            DocumentCheckMessage message = PremexMessage.OnDeserialize <DocumentCheckMessage>(xml);

            return(message);
        }