Click here to Skip to main content
12,405,543 members (59,092 online)
Click here to Skip to main content

Stats

31K views
379 downloads
46 bookmarked
Posted

Integrating WCF Services

, 24 Apr 2008 CPOL
This article describes how WCF services can be loaded on-the-fly (without prior knowledge of the services’ contracts), setting its parameters and sequencing their invocation.
Integrator
Debug
Integrator.Common
bin
Distribution
Release
Properties
Integrator.DynamicProxyModel
bin
Debug
Properties
Integrator.Module.LoadedServices
bin
Debug
Properties
Integrator.Module.Sequencer
bin
Debug
Properties
Resources
Done.bmp
Paused.bmp
Ready.bmp
Started.bmp
Stopped.bmp
Integrator.Sequencer
bin
Debug
Properties
Integrator.ServiceManagerModel
bin
Debug
Parameter
Properties
Integrator.Shell
bin
Debug
Distribution
Release
Properties
Integrator.suo
Integrator.TestServer
bin
Debug
Properties
Integrator.UI.ParameterEditor
bin
Debug
Properties
Release
Resources
Done.bmp
In.ico
Microsoft.Practices.CompositeUI.dll
Microsoft.Practices.CompositeUI.WinForms.dll
Microsoft.Practices.ObjectBuilder.dll
Operation.ico
Out.ico
Paused.bmp
Ready.bmp
Service.ico
Services.ico
Start.bmp
Started.bmp
Stopped.bmp
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.CompositeUI;

namespace Integrator.UI.ParameterEditor
{
    public class ParameterEditorModuleInit : ModuleInit
    {
        private WorkItem parentWorkItem;

        [ServiceDependency]
        public WorkItem ParentWorkItem
        {
            set { parentWorkItem = value; }
        }

        public override void Load()
        {
            base.Load();
            CoordinatorWorkItem coordinatorWorkItem = parentWorkItem.WorkItems.AddNew<CoordinatorWorkItem>();
            coordinatorWorkItem.Run();
        }
    }
}

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

Ben Liew
Software Developer (Senior)
Singapore Singapore
Yes, I design. Then, I code. Next, I refactor.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160721.1 | Last Updated 25 Apr 2008
Article Copyright 2008 by Ben Liew
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid