Click here to Skip to main content
15,894,720 members
Articles / Programming Languages / C# 4.0

Establishing Correlation Between Multiple RECEIVE in WF4

Rate me:
Please Sign up or sign in to vote.
4.00/5 (4 votes)
22 Jan 2010CPOL7 min read 40.4K   785   12  
A simple program to understand correlation in WF4
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.21006.1
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace ClientApp.ServiceReference1 {
    
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(ConfigurationName="ServiceReference1.CustomerService")]
    public interface CustomerService {
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/CustomerService/CreateCustomer", ReplyAction="http://tempuri.org/CustomerService/CreateCustomerResponse")]
        [return: System.ServiceModel.MessageParameterAttribute(Name="resultAdd")]
        string CreateCustomer(Customer.Customer value);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/CustomerService/AddLastName", ReplyAction="http://tempuri.org/CustomerService/AddLastNameResponse")]
        [return: System.ServiceModel.MessageParameterAttribute(Name="resultAdd")]
        string AddLastName(string value, int ID);
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public interface CustomerServiceChannel : ClientApp.ServiceReference1.CustomerService, System.ServiceModel.IClientChannel {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
    public partial class CustomerServiceClient : System.ServiceModel.ClientBase<ClientApp.ServiceReference1.CustomerService>, ClientApp.ServiceReference1.CustomerService {
        
        public CustomerServiceClient() {
        }
        
        public CustomerServiceClient(string endpointConfigurationName) : 
                base(endpointConfigurationName) {
        }
        
        public CustomerServiceClient(string endpointConfigurationName, string remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public CustomerServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public CustomerServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress) {
        }
        
        public string CreateCustomer(Customer.Customer value) {
            return base.Channel.CreateCustomer(value);
        }
        
        public string AddLastName(string value, int ID) {
            return base.Channel.AddLastName(value, ID);
        }
    }
}

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
Technical Lead
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions