Click here to Skip to main content
15,884,388 members
Articles / Desktop Programming / XAML

WF4 Custom activities for message mediation

Rate me:
Please Sign up or sign in to vote.
4.98/5 (25 votes)
20 Dec 2012CPOL24 min read 108.2K   2K   72  
This article describes a design, implementation, and usage of custom message mediation activities for a XAML workflow.
namespace RKiss.MessageMediationActivityLibrary.Design.Dialogs.UserControls
{
    partial class MessageUserControl
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Component Designer generated code

        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.comboBoxMessageVersions = new System.Windows.Forms.ComboBox();
            this.labelContract = new System.Windows.Forms.Label();
            this.textBoxUrl = new System.Windows.Forms.TextBox();
            this.labelUrl = new System.Windows.Forms.Label();
            this.buttonGet = new System.Windows.Forms.Button();
            this.buttonClear = new System.Windows.Forms.Button();
            this.labelMessageVersion = new System.Windows.Forms.Label();
            this.comboBoxOperations = new System.Windows.Forms.ComboBox();
            this.comboBoxContracts = new System.Windows.Forms.ComboBox();
            this.panel2 = new System.Windows.Forms.Panel();
            this.comboBoxDirection = new System.Windows.Forms.ComboBox();
            this.comboBoxUriTest = new System.Windows.Forms.ComboBox();
            this.panel2.SuspendLayout();
            this.SuspendLayout();
            // 
            // comboBoxMessageVersions
            // 
            this.comboBoxMessageVersions.Cursor = System.Windows.Forms.Cursors.Default;
            this.comboBoxMessageVersions.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.comboBoxMessageVersions.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.comboBoxMessageVersions.FormattingEnabled = true;
            this.comboBoxMessageVersions.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.comboBoxMessageVersions.Location = new System.Drawing.Point(44, 12);
            this.comboBoxMessageVersions.Name = "comboBoxMessageVersions";
            this.comboBoxMessageVersions.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.comboBoxMessageVersions.Size = new System.Drawing.Size(188, 21);
            this.comboBoxMessageVersions.TabIndex = 5;
            this.comboBoxMessageVersions.SelectedIndexChanged += new System.EventHandler(this.comboBoxMessageVersions_SelectedIndexChanged);
            // 
            // labelContract
            // 
            this.labelContract.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.labelContract.AutoSize = true;
            this.labelContract.Cursor = System.Windows.Forms.Cursors.Default;
            this.labelContract.Enabled = false;
            this.labelContract.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.labelContract.ImeMode = System.Windows.Forms.ImeMode.Disable;
            this.labelContract.Location = new System.Drawing.Point(210, 40);
            this.labelContract.Name = "labelContract";
            this.labelContract.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.labelContract.Size = new System.Drawing.Size(49, 13);
            this.labelContract.TabIndex = 4;
            this.labelContract.Text = "contract:";
            // 
            // textBoxUrl
            // 
            this.textBoxUrl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBoxUrl.Cursor = System.Windows.Forms.Cursors.IBeam;
            this.textBoxUrl.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.textBoxUrl.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.textBoxUrl.Location = new System.Drawing.Point(265, 12);
            this.textBoxUrl.Name = "textBoxUrl";
            this.textBoxUrl.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.textBoxUrl.Size = new System.Drawing.Size(368, 20);
            this.textBoxUrl.TabIndex = 6;
            this.textBoxUrl.Text = "net.pipe://localhost/repository/mex?Event";
            this.textBoxUrl.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBoxUrl_KeyPress);
            // 
            // labelUrl
            // 
            this.labelUrl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.labelUrl.AutoSize = true;
            this.labelUrl.Cursor = System.Windows.Forms.Cursors.Default;
            this.labelUrl.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.labelUrl.ImeMode = System.Windows.Forms.ImeMode.Disable;
            this.labelUrl.Location = new System.Drawing.Point(238, 16);
            this.labelUrl.Name = "labelUrl";
            this.labelUrl.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.labelUrl.Size = new System.Drawing.Size(21, 13);
            this.labelUrl.TabIndex = 4;
            this.labelUrl.Text = "url:";
            this.labelUrl.DoubleClick += new System.EventHandler(this.labelUrl_DoubleClick);
            // 
            // buttonGet
            // 
            this.buttonGet.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonGet.Cursor = System.Windows.Forms.Cursors.Default;
            this.buttonGet.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.buttonGet.ImeMode = System.Windows.Forms.ImeMode.Disable;
            this.buttonGet.Location = new System.Drawing.Point(639, 12);
            this.buttonGet.Name = "buttonGet";
            this.buttonGet.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.buttonGet.Size = new System.Drawing.Size(45, 20);
            this.buttonGet.TabIndex = 7;
            this.buttonGet.Text = "Get";
            this.buttonGet.UseVisualStyleBackColor = true;
            this.buttonGet.Click += new System.EventHandler(this.buttonGet_Click);
            // 
            // buttonClear
            // 
            this.buttonClear.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonClear.Cursor = System.Windows.Forms.Cursors.Default;
            this.buttonClear.Enabled = false;
            this.buttonClear.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.buttonClear.ImeMode = System.Windows.Forms.ImeMode.Disable;
            this.buttonClear.Location = new System.Drawing.Point(690, 11);
            this.buttonClear.Name = "buttonClear";
            this.buttonClear.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.buttonClear.Size = new System.Drawing.Size(34, 20);
            this.buttonClear.TabIndex = 7;
            this.buttonClear.Text = "Clr";
            this.buttonClear.UseVisualStyleBackColor = true;
            this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click);
            // 
            // labelMessageVersion
            // 
            this.labelMessageVersion.AutoSize = true;
            this.labelMessageVersion.Cursor = System.Windows.Forms.Cursors.Default;
            this.labelMessageVersion.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.labelMessageVersion.ImeMode = System.Windows.Forms.ImeMode.Disable;
            this.labelMessageVersion.Location = new System.Drawing.Point(-1, 15);
            this.labelMessageVersion.Name = "labelMessageVersion";
            this.labelMessageVersion.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.labelMessageVersion.Size = new System.Drawing.Size(45, 13);
            this.labelMessageVersion.TabIndex = 4;
            this.labelMessageVersion.Text = "Version:";
            // 
            // comboBoxOperations
            // 
            this.comboBoxOperations.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.comboBoxOperations.Cursor = System.Windows.Forms.Cursors.Default;
            this.comboBoxOperations.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.comboBoxOperations.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.comboBoxOperations.FormattingEnabled = true;
            this.comboBoxOperations.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.comboBoxOperations.Location = new System.Drawing.Point(382, 37);
            this.comboBoxOperations.Name = "comboBoxOperations";
            this.comboBoxOperations.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.comboBoxOperations.Size = new System.Drawing.Size(171, 21);
            this.comboBoxOperations.Sorted = true;
            this.comboBoxOperations.TabIndex = 8;
            this.comboBoxOperations.SelectedIndexChanged += new System.EventHandler(this.comboBoxOperations_SelectedIndexChanged);
            // 
            // comboBoxContracts
            // 
            this.comboBoxContracts.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.comboBoxContracts.Cursor = System.Windows.Forms.Cursors.Default;
            this.comboBoxContracts.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.comboBoxContracts.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.comboBoxContracts.FormattingEnabled = true;
            this.comboBoxContracts.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.comboBoxContracts.Location = new System.Drawing.Point(265, 37);
            this.comboBoxContracts.Name = "comboBoxContracts";
            this.comboBoxContracts.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.comboBoxContracts.Size = new System.Drawing.Size(111, 21);
            this.comboBoxContracts.Sorted = true;
            this.comboBoxContracts.TabIndex = 8;
            this.comboBoxContracts.SelectedIndexChanged += new System.EventHandler(this.comboBoxContracts_SelectedIndexChanged);
            // 
            // panel2
            // 
            this.panel2.AllowDrop = true;
            this.panel2.BackColor = System.Drawing.Color.Azure;
            this.panel2.Controls.Add(this.comboBoxDirection);
            this.panel2.Controls.Add(this.comboBoxUriTest);
            this.panel2.Controls.Add(this.comboBoxContracts);
            this.panel2.Controls.Add(this.comboBoxOperations);
            this.panel2.Controls.Add(this.labelMessageVersion);
            this.panel2.Controls.Add(this.buttonClear);
            this.panel2.Controls.Add(this.buttonGet);
            this.panel2.Controls.Add(this.labelUrl);
            this.panel2.Controls.Add(this.textBoxUrl);
            this.panel2.Controls.Add(this.labelContract);
            this.panel2.Controls.Add(this.comboBoxMessageVersions);
            this.panel2.Cursor = System.Windows.Forms.Cursors.Default;
            this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.panel2.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.panel2.Location = new System.Drawing.Point(0, 0);
            this.panel2.Name = "panel2";
            this.panel2.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.panel2.Size = new System.Drawing.Size(729, 111);
            this.panel2.TabIndex = 10;
            // 
            // comboBoxDirection
            // 
            this.comboBoxDirection.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.comboBoxDirection.Cursor = System.Windows.Forms.Cursors.Default;
            this.comboBoxDirection.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.comboBoxDirection.Enabled = false;
            this.comboBoxDirection.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.comboBoxDirection.FormattingEnabled = true;
            this.comboBoxDirection.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.comboBoxDirection.Items.AddRange(new object[] {
            "Request",
            "Response"});
            this.comboBoxDirection.Location = new System.Drawing.Point(559, 37);
            this.comboBoxDirection.Name = "comboBoxDirection";
            this.comboBoxDirection.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.comboBoxDirection.Size = new System.Drawing.Size(74, 21);
            this.comboBoxDirection.TabIndex = 10;
            this.comboBoxDirection.SelectedIndexChanged += new System.EventHandler(this.comboBoxDirection_SelectedIndexChanged);
            // 
            // comboBoxUriTest
            // 
            this.comboBoxUriTest.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.comboBoxUriTest.Cursor = System.Windows.Forms.Cursors.Default;
            this.comboBoxUriTest.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.comboBoxUriTest.FormattingEnabled = true;
            this.comboBoxUriTest.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.comboBoxUriTest.Items.AddRange(new object[] {
            "http://service.ecocoma.com/video/video.asmx?WSDL",
            "http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl",
            "",
            "http://service.ecocoma.com/marketing/google.asmx?WSDL",
            "",
            "http://data.elendersolutions.com/nlsec/aqua/aquaproxy/wsproxy.asmx?wsdl",
            "",
            "http://wsf.cdyne.com/WeatherWS/Weather.asmx?wsdl",
            "",
            "http://schemas.xmlsoap.org/ws/2004/08/eventing/eventing.wsdl",
            "",
            "http://schemas.xmlsoap.org/ws/2004/09/mex/MetadataExchange.wsdl",
            "http://schemas.xmlsoap.org/ws/2006/08/resourceTransfer/wsrt.wsdl",
            "http://schemas.xmlsoap.org/ws/2005/04/discovery/ws-discovery.wsdl",
            "",
            "// ----"});
            this.comboBoxUriTest.Location = new System.Drawing.Point(265, 10);
            this.comboBoxUriTest.Name = "comboBoxUriTest";
            this.comboBoxUriTest.RightToLeft = System.Windows.Forms.RightToLeft.No;
            this.comboBoxUriTest.Size = new System.Drawing.Size(368, 21);
            this.comboBoxUriTest.TabIndex = 9;
            this.comboBoxUriTest.Visible = false;
            this.comboBoxUriTest.SelectedIndexChanged += new System.EventHandler(this.comboBoxUriTest_SelectedIndexChanged);
            this.comboBoxUriTest.DropDownClosed += new System.EventHandler(this.comboBoxUriTest_DropDownClosed);
            // 
            // MessageUserControl
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.panel2);
            this.Name = "MessageUserControl";
            this.Size = new System.Drawing.Size(729, 111);
            this.panel2.ResumeLayout(false);
            this.panel2.PerformLayout();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.ComboBox comboBoxMessageVersions;
        private System.Windows.Forms.Label labelContract;
        private System.Windows.Forms.TextBox textBoxUrl;
        private System.Windows.Forms.Label labelUrl;
        private System.Windows.Forms.Button buttonGet;
        private System.Windows.Forms.Button buttonClear;
        private System.Windows.Forms.Label labelMessageVersion;
        private System.Windows.Forms.ComboBox comboBoxOperations;
        private System.Windows.Forms.ComboBox comboBoxContracts;
        private System.Windows.Forms.Panel panel2;
        private System.Windows.Forms.ComboBox comboBoxUriTest;
        private System.Windows.Forms.ComboBox comboBoxDirection;

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions