Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Host and Workflow: Two Worlds to Communicate. Part V

, 4 Oct 2008 CPOL
Part V: Intercommunications with a Workflow instance using Correlation parameter
host_wf_comm_P5_1.zip
P5ExampleWithoutCorrelation
CommunicationManager
bin
Properties
CorrelationDemo
bin
CorrelationDemoWF.csproj.user
Properties
Settings.settings
P5ExampleWithoutCorrelation.suo
SendAllEmail
bin
Properties
Settings.settings
host_wf_comm_P5_2.zip
P5ExampleWithCorrelation
CommunicationManager
bin
Properties
CorrelationDemo
bin
CorrelationDemoWF.csproj.user
Properties
Settings.settings
P5ExampleWithCorrelation.suo
SendAllEmail
bin
Properties
Settings.settings
//------------------------------------------------------------------------------
// <auto-generated>
//     Dieser Code wurde von einem Tool generiert.
//     Laufzeitversion:2.0.50727.1434
//
//     Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
//     der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------

namespace CommunicationManager {
    using System;
    using System.ComponentModel;
    using System.Workflow.Activities;
    using System.Workflow.ComponentModel;
    using System.Workflow.ComponentModel.Design;
    using System.Workflow.ComponentModel.Compiler;
    
    
    [ToolboxItemAttribute(typeof(ActivityToolboxItem))]
    public partial class GetEmailAddress : CallExternalMethodActivity {
        
        public static DependencyProperty wfIdProperty = DependencyProperty.Register("wfId", typeof(System.Guid), typeof(GetEmailAddress));
        
        public static DependencyProperty typoProperty = DependencyProperty.Register("typo", typeof(string), typeof(GetEmailAddress));
        
        public static DependencyProperty orderNumberProperty = DependencyProperty.Register("orderNumber", typeof(string), typeof(GetEmailAddress));
        
        public GetEmailAddress() {
            base.InterfaceType = typeof(CommunicationManager.IMailCommunication);
            base.MethodName = "GetEmailAddress";
        }
        
        [BrowsableAttribute(false)]
        [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
        public override System.Type InterfaceType {
            get {
                return base.InterfaceType;
            }
            set {
                throw new InvalidOperationException("Cannot set InterfaceType on a derived CallExternalMethodActivity.");
            }
        }
        
        [BrowsableAttribute(false)]
        [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
        public override string MethodName {
            get {
                return base.MethodName;
            }
            set {
                throw new InvalidOperationException("Cannot set MethodName on a derived CallExternalMethodActivity.");
            }
        }
        
        [ValidationOptionAttribute(ValidationOption.Required)]
        public System.Guid wfId {
            get {
                return ((System.Guid)(this.GetValue(GetEmailAddress.wfIdProperty)));
            }
            set {
                this.SetValue(GetEmailAddress.wfIdProperty, value);
            }
        }
        
        [ValidationOptionAttribute(ValidationOption.Required)]
        public string typo {
            get {
                return ((string)(this.GetValue(GetEmailAddress.typoProperty)));
            }
            set {
                this.SetValue(GetEmailAddress.typoProperty, value);
            }
        }
        
        [ValidationOptionAttribute(ValidationOption.Required)]
        public string orderNumber {
            get {
                return ((string)(this.GetValue(GetEmailAddress.orderNumberProperty)));
            }
            set {
                this.SetValue(GetEmailAddress.orderNumberProperty, value);
            }
        }
        
        protected override void OnMethodInvoking(System.EventArgs e) {
            this.ParameterBindings["wfId"].Value = this.wfId;
            this.ParameterBindings["typo"].Value = this.typo;
            this.ParameterBindings["orderNumber"].Value = this.orderNumber;
        }
    }
}

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)

Share

About the Author

freedeveloper
Software Developer (Senior) G-SoftSolutions
United States United States
Jose A. Garcia Guirado, Electronic Engineer, graduated in Havana/Cuba 1982, MCTS, MCSD.NET, MCAD.NET, MCSE. Worked in the Institute for Cybernetics and Mathematics of Academy of Science of Cuba for 8 years; since 1995 working as free software architect, developer and advisor, first in Argentina and from 2003 to 2010, in Germany as External consultant in DWS Luxemburg, AIXTRON AG and Shell Deutschland GmbH and from 2010 to 2012 in in Mexico in Twenty Century Fox, and Mexico Stock Exchange (BMV). Actually as freelance in Florida, USA.
Follow on   Google+

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141220.1 | Last Updated 4 Oct 2008
Article Copyright 2008 by freedeveloper
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid