|
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.ServiceModel.Configuration;
namespace BaseLibrary
{
public abstract class MefWorkflowProviderExtensionBehaviorElement : BehaviorExtensionElement
{
/// <summary>
/// parameter name in the configuration file
/// </summary>
private const string useTestServices = "useTestServices";
/// <summary>
/// Define the configuration propert
/// </summary>
[ConfigurationProperty(useTestServices, IsRequired = false, DefaultValue = false)]
public bool UseTestServices
{
get { return (bool) base[useTestServices]; }
set { base[useTestServices] = value.ToString(); }
}
public override Type BehaviorType
{
get { return typeof (MefWorkflowProviderExtensionBehavior); }
}
protected override object CreateBehavior()
{
return CreateExtensionBehavior(this.UseTestServices);
}
protected abstract MefWorkflowProviderExtensionBehavior CreateExtensionBehavior(bool useTestServices);
}
}
|
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.
I am Gareth, working in the book industry specializing in EDI and B2B integration. Starting out as a child bashing out programs on the old commodore 64, I have since progressed from VB6 through the .net framework and loving c#, wf, wpf and where these are heading... hoping one day to have the excuse to play with silverlight.