Click here to Skip to main content
15,885,546 members
Articles / Programming Languages / C#

Simple Client Side WCF Caching

Rate me:
Please Sign up or sign in to vote.
3.62/5 (6 votes)
31 Jan 2008CPOL2 min read 37.8K   348   18  
Implementing client side caching for WCF
namespace WCFCaching
{
  partial class Main
  {
    /// <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.label1 = new System.Windows.Forms.Label();
      this.catSearchIdTxt = new System.Windows.Forms.MaskedTextBox();
      this.button1 = new System.Windows.Forms.Button();
      this.label5 = new System.Windows.Forms.Label();
      this.groupBox1 = new System.Windows.Forms.GroupBox();
      this.descriptionTxt = new System.Windows.Forms.TextBox();
      this.label4 = new System.Windows.Forms.Label();
      this.nameTxt = new System.Windows.Forms.TextBox();
      this.label3 = new System.Windows.Forms.Label();
      this.catIdTxt = new System.Windows.Forms.TextBox();
      this.label2 = new System.Windows.Forms.Label();
      this.groupBox1.SuspendLayout();
      this.SuspendLayout();
      // 
      // label1
      // 
      this.label1.AutoSize = true;
      this.label1.Location = new System.Drawing.Point(86, 67);
      this.label1.Name = "label1";
      this.label1.Size = new System.Drawing.Size(140, 13);
      this.label1.TabIndex = 0;
      this.label1.Text = "Enter Category Id (1 --> 100)";
      // 
      // catSearchIdTxt
      // 
      this.catSearchIdTxt.Location = new System.Drawing.Point(87, 83);
      this.catSearchIdTxt.Mask = "000";
      this.catSearchIdTxt.Name = "catSearchIdTxt";
      this.catSearchIdTxt.PromptChar = ' ';
      this.catSearchIdTxt.Size = new System.Drawing.Size(139, 20);
      this.catSearchIdTxt.TabIndex = 1;
      this.catSearchIdTxt.ValidatingType = typeof(int);
      // 
      // button1
      // 
      this.button1.Location = new System.Drawing.Point(256, 80);
      this.button1.Name = "button1";
      this.button1.Size = new System.Drawing.Size(100, 23);
      this.button1.TabIndex = 2;
      this.button1.Text = "Search Category";
      this.button1.UseVisualStyleBackColor = true;
      this.button1.Click += new System.EventHandler(this.button1_Click);
      // 
      // label5
      // 
      this.label5.AutoSize = true;
      this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
      this.label5.ForeColor = System.Drawing.Color.Navy;
      this.label5.Location = new System.Drawing.Point(50, 24);
      this.label5.Name = "label5";
      this.label5.Size = new System.Drawing.Size(356, 25);
      this.label5.TabIndex = 9;
      this.label5.Text = "Simple Client Side WCF Caching";
      // 
      // groupBox1
      // 
      this.groupBox1.BackColor = System.Drawing.Color.LightSteelBlue;
      this.groupBox1.Controls.Add(this.descriptionTxt);
      this.groupBox1.Controls.Add(this.label4);
      this.groupBox1.Controls.Add(this.nameTxt);
      this.groupBox1.Controls.Add(this.label3);
      this.groupBox1.Controls.Add(this.catIdTxt);
      this.groupBox1.Controls.Add(this.label2);
      this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
      this.groupBox1.Location = new System.Drawing.Point(45, 124);
      this.groupBox1.Name = "groupBox1";
      this.groupBox1.Size = new System.Drawing.Size(393, 159);
      this.groupBox1.TabIndex = 10;
      this.groupBox1.TabStop = false;
      this.groupBox1.Text = "Search Results";
      // 
      // descriptionTxt
      // 
      this.descriptionTxt.Location = new System.Drawing.Point(117, 80);
      this.descriptionTxt.Multiline = true;
      this.descriptionTxt.Name = "descriptionTxt";
      this.descriptionTxt.ReadOnly = true;
      this.descriptionTxt.Size = new System.Drawing.Size(244, 62);
      this.descriptionTxt.TabIndex = 14;
      this.descriptionTxt.TabStop = false;
      // 
      // label4
      // 
      this.label4.AutoSize = true;
      this.label4.Location = new System.Drawing.Point(28, 83);
      this.label4.Name = "label4";
      this.label4.Size = new System.Drawing.Size(83, 18);
      this.label4.TabIndex = 13;
      this.label4.Text = "Description";
      // 
      // nameTxt
      // 
      this.nameTxt.Location = new System.Drawing.Point(117, 54);
      this.nameTxt.Name = "nameTxt";
      this.nameTxt.ReadOnly = true;
      this.nameTxt.Size = new System.Drawing.Size(244, 24);
      this.nameTxt.TabIndex = 12;
      this.nameTxt.TabStop = false;
      // 
      // label3
      // 
      this.label3.AutoSize = true;
      this.label3.Location = new System.Drawing.Point(28, 57);
      this.label3.Name = "label3";
      this.label3.Size = new System.Drawing.Size(48, 18);
      this.label3.TabIndex = 11;
      this.label3.Text = "Name";
      // 
      // catIdTxt
      // 
      this.catIdTxt.Location = new System.Drawing.Point(117, 28);
      this.catIdTxt.Name = "catIdTxt";
      this.catIdTxt.ReadOnly = true;
      this.catIdTxt.Size = new System.Drawing.Size(244, 24);
      this.catIdTxt.TabIndex = 10;
      this.catIdTxt.TabStop = false;
      // 
      // label2
      // 
      this.label2.AutoSize = true;
      this.label2.Location = new System.Drawing.Point(28, 31);
      this.label2.Name = "label2";
      this.label2.Size = new System.Drawing.Size(83, 18);
      this.label2.TabIndex = 9;
      this.label2.Text = "Category Id";
      // 
      // Main
      // 
      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
      this.BackColor = System.Drawing.Color.AliceBlue;
      this.ClientSize = new System.Drawing.Size(492, 301);
      this.Controls.Add(this.groupBox1);
      this.Controls.Add(this.label5);
      this.Controls.Add(this.button1);
      this.Controls.Add(this.catSearchIdTxt);
      this.Controls.Add(this.label1);
      this.Name = "Main";
      this.Text = "Main";
      this.Load += new System.EventHandler(this.Form1_Load);
      this.groupBox1.ResumeLayout(false);
      this.groupBox1.PerformLayout();
      this.ResumeLayout(false);
      this.PerformLayout();

    }

    #endregion

    private System.Windows.Forms.Label label1;
    private System.Windows.Forms.MaskedTextBox catSearchIdTxt;
    private System.Windows.Forms.Button button1;
    private System.Windows.Forms.Label label5;
    private System.Windows.Forms.GroupBox groupBox1;
    private System.Windows.Forms.TextBox descriptionTxt;
    private System.Windows.Forms.Label label4;
    private System.Windows.Forms.TextBox nameTxt;
    private System.Windows.Forms.Label label3;
    private System.Windows.Forms.TextBox catIdTxt;
    private System.Windows.Forms.Label label2;
  }
}

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) Squarei Technologies
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