Click here to Skip to main content
15,881,204 members
Articles / DevOps / Load Testing

VirtualService for ESB

Rate me:
Please Sign up or sign in to vote.
4.90/5 (32 votes)
19 Feb 2008CPOL37 min read 96.6K   1.2K   98  
This article describes the design, implementation, and usage of VirtualService for the Enterprise Service Bus, using the Microsoft .NET FX 3.5 technology.
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace WorkflowLibrary1
{
	partial class Workflow3
	{
		#region Designer generated code
		
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
		private void InitializeComponent()
		{
            this.CanModifyActivities = true;
            System.Workflow.Activities.ChannelToken channeltoken1 = new System.Workflow.Activities.ChannelToken();
            System.Workflow.Activities.TypedOperationInfo typedoperationinfo1 = new System.Workflow.Activities.TypedOperationInfo();
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.OperationInfo operationinfo1 = new System.Workflow.Activities.OperationInfo();
            System.Workflow.Activities.WorkflowServiceAttributes workflowserviceattributes1 = new System.Workflow.Activities.WorkflowServiceAttributes();
            this.sendActivity1 = new System.Workflow.Activities.SendActivity();
            this.xslProcessor1 = new MediatorActivityLibrary.XslProcessor();
            this.Notify = new MediatorActivityLibrary.Mediator();
            this.receiveActivity1 = new System.Workflow.Activities.ReceiveActivity();
            // 
            // sendActivity1
            // 
            channeltoken1.EndpointName = "fafa";
            channeltoken1.Name = "dispatcher";
            this.sendActivity1.ChannelToken = channeltoken1;
            this.sendActivity1.Name = "sendActivity1";
            typedoperationinfo1.ContractType = typeof(RKiss.ESB.IBroadcast);
            typedoperationinfo1.Name = "ProcessMessage";
            this.sendActivity1.ServiceOperationInfo = typedoperationinfo1;
            // 
            // xslProcessor1
            // 
            this.xslProcessor1.MediatorIndex = 0;
            this.xslProcessor1.MediatorName = null;
            this.xslProcessor1.Mediators = null;
            activitybind1.Name = "/Parent";
            activitybind1.Path = "MessageInput";
            activitybind2.Name = "/parent";
            activitybind2.Path = "MessageOutput";
            this.xslProcessor1.Name = "xslProcessor1";
            this.xslProcessor1.SetBinding(MediatorActivityLibrary.XslProcessor.MessageInputProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.xslProcessor1.SetBinding(MediatorActivityLibrary.XslProcessor.MessageOutputProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            // 
            // Notify
            // 
            this.Notify.Activities.Add(this.xslProcessor1);
            this.Notify.Activities.Add(this.sendActivity1);
            this.Notify.MediatorMode = RKiss.ESB.MediatorMode.Input;
            this.Notify.Mediators = null;
            this.Notify.MessageInput = null;
            this.Notify.MessageOutput = null;
            this.Notify.Name = "Notify";
            // 
            // receiveActivity1
            // 
            this.receiveActivity1.CanCreateInstance = true;
            this.receiveActivity1.Name = "receiveActivity1";
            operationinfo1.ContractName = "Contract1";
            operationinfo1.Name = "Operation1";
            this.receiveActivity1.ServiceOperationInfo = operationinfo1;
            workflowserviceattributes1.ConfigurationName = "WorkflowLibrary1.Workflow3";
            workflowserviceattributes1.Name = "Workflow3";
            // 
            // Workflow3
            // 
            this.Activities.Add(this.receiveActivity1);
            this.Activities.Add(this.Notify);
            this.Name = "Workflow3";
            this.SetValue(System.Workflow.Activities.ReceiveActivity.WorkflowServiceAttributesProperty, workflowserviceattributes1);
            this.CanModifyActivities = false;

		}

		#endregion

        private MediatorActivityLibrary.Mediator Notify;
        private MediatorActivityLibrary.XslProcessor xslProcessor1;
        private SendActivity sendActivity1;
        private ReceiveActivity receiveActivity1;






















    }
}

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