Click here to Skip to main content
15,896,154 members
Articles / Desktop Programming / Win32

Routing Manager for WCF4

Rate me:
Please Sign up or sign in to vote.
5.00/5 (38 votes)
29 Apr 2010CPOL18 min read 108.4K   2.5K   92  
This article describes a design, implementation and usage of the Custom Routing Manager for managing messages via Routing Service built-in .Net 4 Technology.
namespace LocalRepository
{
    partial class Form1
    {
        /// <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 Windows Form 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.panel1 = new System.Windows.Forms.Panel();
            this.tabControlRouter = new System.Windows.Forms.TabControl();
            this.tabPageStatus = new System.Windows.Forms.TabPage();
            this.panel2 = new System.Windows.Forms.Panel();
            this.richTextBoxStatus = new System.Windows.Forms.RichTextBox();
            this.tabPageMetadata = new System.Windows.Forms.TabPage();
            this.xmlNotepadPanelControl1 = new LocalRepository.UserControls.XmlNotepadPanelControl();
            this.checkBoxOnlyOnHeaders = new System.Windows.Forms.CheckBox();
            this.checkBoxSoapEnabling = new System.Windows.Forms.CheckBox();
            this.tabPageRoutingTable = new System.Windows.Forms.TabPage();
            this.routingTableUserControl1 = new LocalRepository.UserControls.RoutingTableUserControl();
            this.buttonRefresh = new System.Windows.Forms.Button();
            this.buttonSet = new System.Windows.Forms.Button();
            this.buttonStatus = new System.Windows.Forms.Button();
            this.textBoxRMAddress = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.panel1.SuspendLayout();
            this.tabControlRouter.SuspendLayout();
            this.tabPageStatus.SuspendLayout();
            this.panel2.SuspendLayout();
            this.tabPageMetadata.SuspendLayout();
            this.tabPageRoutingTable.SuspendLayout();
            this.SuspendLayout();
            // 
            // panel1
            // 
            this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.panel1.Controls.Add(this.tabControlRouter);
            this.panel1.Location = new System.Drawing.Point(0, 0);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(762, 339);
            this.panel1.TabIndex = 0;
            // 
            // tabControlRouter
            // 
            this.tabControlRouter.Controls.Add(this.tabPageStatus);
            this.tabControlRouter.Controls.Add(this.tabPageMetadata);
            this.tabControlRouter.Controls.Add(this.tabPageRoutingTable);
            this.tabControlRouter.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabControlRouter.Location = new System.Drawing.Point(0, 0);
            this.tabControlRouter.Name = "tabControlRouter";
            this.tabControlRouter.SelectedIndex = 0;
            this.tabControlRouter.Size = new System.Drawing.Size(762, 339);
            this.tabControlRouter.TabIndex = 0;
            this.tabControlRouter.Selected += new System.Windows.Forms.TabControlEventHandler(this.tabControlRouter_Selected);
            // 
            // tabPageStatus
            // 
            this.tabPageStatus.Controls.Add(this.panel2);
            this.tabPageStatus.Location = new System.Drawing.Point(4, 22);
            this.tabPageStatus.Name = "tabPageStatus";
            this.tabPageStatus.Padding = new System.Windows.Forms.Padding(3);
            this.tabPageStatus.Size = new System.Drawing.Size(754, 313);
            this.tabPageStatus.TabIndex = 3;
            this.tabPageStatus.Text = "Status";
            this.tabPageStatus.UseVisualStyleBackColor = true;
            // 
            // panel2
            // 
            this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.panel2.Controls.Add(this.richTextBoxStatus);
            this.panel2.Location = new System.Drawing.Point(0, 0);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(825, 396);
            this.panel2.TabIndex = 1;
            // 
            // richTextBoxStatus
            // 
            this.richTextBoxStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.richTextBoxStatus.BackColor = System.Drawing.SystemColors.ControlLightLight;
            this.richTextBoxStatus.Location = new System.Drawing.Point(0, 0);
            this.richTextBoxStatus.Name = "richTextBoxStatus";
            this.richTextBoxStatus.ReadOnly = true;
            this.richTextBoxStatus.Size = new System.Drawing.Size(754, 317);
            this.richTextBoxStatus.TabIndex = 0;
            this.richTextBoxStatus.Text = "";
            this.richTextBoxStatus.WordWrap = false;
            // 
            // tabPageMetadata
            // 
            this.tabPageMetadata.Controls.Add(this.xmlNotepadPanelControl1);
            this.tabPageMetadata.Controls.Add(this.checkBoxOnlyOnHeaders);
            this.tabPageMetadata.Controls.Add(this.checkBoxSoapEnabling);
            this.tabPageMetadata.Location = new System.Drawing.Point(4, 22);
            this.tabPageMetadata.Name = "tabPageMetadata";
            this.tabPageMetadata.Padding = new System.Windows.Forms.Padding(3);
            this.tabPageMetadata.Size = new System.Drawing.Size(754, 313);
            this.tabPageMetadata.TabIndex = 0;
            this.tabPageMetadata.Text = "Metadata";
            this.tabPageMetadata.UseVisualStyleBackColor = true;
            // 
            // xmlNotepadPanelControl1
            // 
            this.xmlNotepadPanelControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.xmlNotepadPanelControl1.AutoScroll = true;
            this.xmlNotepadPanelControl1.Location = new System.Drawing.Point(0, 29);
            this.xmlNotepadPanelControl1.Name = "xmlNotepadPanelControl1";
            this.xmlNotepadPanelControl1.Size = new System.Drawing.Size(754, 288);
            this.xmlNotepadPanelControl1.TabIndex = 2;
            // 
            // checkBoxOnlyOnHeaders
            // 
            this.checkBoxOnlyOnHeaders.AutoSize = true;
            this.checkBoxOnlyOnHeaders.Location = new System.Drawing.Point(6, 6);
            this.checkBoxOnlyOnHeaders.Name = "checkBoxOnlyOnHeaders";
            this.checkBoxOnlyOnHeaders.Size = new System.Drawing.Size(130, 17);
            this.checkBoxOnlyOnHeaders.TabIndex = 1;
            this.checkBoxOnlyOnHeaders.Text = "RouteOnHeadersOnly";
            this.checkBoxOnlyOnHeaders.UseVisualStyleBackColor = true;
            this.checkBoxOnlyOnHeaders.CheckedChanged += new System.EventHandler(this.checkBoxOnlyOnHeaders_CheckedChanged);
            // 
            // checkBoxSoapEnabling
            // 
            this.checkBoxSoapEnabling.AutoSize = true;
            this.checkBoxSoapEnabling.Location = new System.Drawing.Point(142, 6);
            this.checkBoxSoapEnabling.Name = "checkBoxSoapEnabling";
            this.checkBoxSoapEnabling.Size = new System.Drawing.Size(142, 17);
            this.checkBoxSoapEnabling.TabIndex = 1;
            this.checkBoxSoapEnabling.Text = "SoapProcessingEnabled";
            this.checkBoxSoapEnabling.UseVisualStyleBackColor = true;
            this.checkBoxSoapEnabling.CheckedChanged += new System.EventHandler(this.checkBoxSoapEnabling_CheckedChanged);
            // 
            // tabPageRoutingTable
            // 
            this.tabPageRoutingTable.Controls.Add(this.routingTableUserControl1);
            this.tabPageRoutingTable.Location = new System.Drawing.Point(4, 22);
            this.tabPageRoutingTable.Name = "tabPageRoutingTable";
            this.tabPageRoutingTable.Padding = new System.Windows.Forms.Padding(3);
            this.tabPageRoutingTable.Size = new System.Drawing.Size(754, 313);
            this.tabPageRoutingTable.TabIndex = 4;
            this.tabPageRoutingTable.Text = "RoutingTable";
            this.tabPageRoutingTable.UseVisualStyleBackColor = true;
            // 
            // routingTableUserControl1
            // 
            this.routingTableUserControl1.BackColor = System.Drawing.Color.AliceBlue;
            this.routingTableUserControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.routingTableUserControl1.Location = new System.Drawing.Point(3, 3);
            this.routingTableUserControl1.Name = "routingTableUserControl1";
            this.routingTableUserControl1.Size = new System.Drawing.Size(748, 307);
            this.routingTableUserControl1.TabIndex = 0;
            // 
            // buttonRefresh
            // 
            this.buttonRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonRefresh.Location = new System.Drawing.Point(663, 355);
            this.buttonRefresh.Name = "buttonRefresh";
            this.buttonRefresh.Size = new System.Drawing.Size(95, 23);
            this.buttonRefresh.TabIndex = 1;
            this.buttonRefresh.Text = "Refresh";
            this.buttonRefresh.UseVisualStyleBackColor = true;
            this.buttonRefresh.Click += new System.EventHandler(this.buttonRefresh_Click);
            // 
            // buttonSet
            // 
            this.buttonSet.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonSet.Location = new System.Drawing.Point(598, 355);
            this.buttonSet.Name = "buttonSet";
            this.buttonSet.Size = new System.Drawing.Size(59, 23);
            this.buttonSet.TabIndex = 1;
            this.buttonSet.Text = "Set";
            this.buttonSet.UseVisualStyleBackColor = true;
            this.buttonSet.Click += new System.EventHandler(this.buttonSet_Click);
            // 
            // buttonStatus
            // 
            this.buttonStatus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonStatus.Location = new System.Drawing.Point(533, 355);
            this.buttonStatus.Name = "buttonStatus";
            this.buttonStatus.Size = new System.Drawing.Size(59, 23);
            this.buttonStatus.TabIndex = 1;
            this.buttonStatus.Text = "Status";
            this.buttonStatus.UseVisualStyleBackColor = true;
            this.buttonStatus.Click += new System.EventHandler(this.buttonStatus_Click);
            // 
            // textBoxRMAddress
            // 
            this.textBoxRMAddress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.textBoxRMAddress.Location = new System.Drawing.Point(142, 358);
            this.textBoxRMAddress.Name = "textBoxRMAddress";
            this.textBoxRMAddress.Size = new System.Drawing.Size(376, 20);
            this.textBoxRMAddress.TabIndex = 2;
            this.textBoxRMAddress.Text = "http://localhost/Router/PilotManager.svc/RM";
            // 
            // label1
            // 
            this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(7, 361);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(129, 13);
            this.label1.TabIndex = 3;
            this.label1.Text = "RoutingManager address:";
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(764, 390);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.textBoxRMAddress);
            this.Controls.Add(this.buttonStatus);
            this.Controls.Add(this.buttonSet);
            this.Controls.Add(this.buttonRefresh);
            this.Controls.Add(this.panel1);
            this.Name = "Form1";
            this.Text = "Local Repository - Routing";
            this.panel1.ResumeLayout(false);
            this.tabControlRouter.ResumeLayout(false);
            this.tabPageStatus.ResumeLayout(false);
            this.panel2.ResumeLayout(false);
            this.tabPageMetadata.ResumeLayout(false);
            this.tabPageMetadata.PerformLayout();
            this.tabPageRoutingTable.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Panel panel1;
        private System.Windows.Forms.Button buttonRefresh;
        private System.Windows.Forms.TabControl tabControlRouter;
        private System.Windows.Forms.TabPage tabPageMetadata;
        private System.Windows.Forms.CheckBox checkBoxSoapEnabling;
        private System.Windows.Forms.TabPage tabPageStatus;
        private System.Windows.Forms.Panel panel2;
        private System.Windows.Forms.RichTextBox richTextBoxStatus;
        private System.Windows.Forms.CheckBox checkBoxOnlyOnHeaders;
       
        private System.Windows.Forms.Button buttonSet;
        private System.Windows.Forms.Button buttonStatus;
        private System.Windows.Forms.TextBox textBoxRMAddress;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.TabPage tabPageRoutingTable;
        private UserControls.RoutingTableUserControl routingTableUserControl1; 
        private LocalRepository.UserControls.XmlNotepadPanelControl xmlNotepadPanelControl1;
    }
}

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