Files
yavsc/WorkFlowProvider/WFManager.cs
Paul Schneider 04804b89a9 Initial import
2014-07-16 20:35:03 +02:00

19 lines
622 B
C#

using System;
using yavscModel.WorkFlow;
namespace WorkFlowProvider
{
public static class WFManager
{
public static IContentProvider GetContentProviderFWC ()
{
string clsName = System.Configuration.ConfigurationManager.AppSettings ["WorkflowContentProviderClass"];
if (clsName == null)
throw new Exception ("No content provider specified in the configuration file (Application parameter \"WorkflowContentProviderClass\")");
System.Reflection.ConstructorInfo ci = Type.GetType (clsName).GetConstructor (System.Type.EmptyTypes);
return (IContentProvider) ci.Invoke (System.Type.EmptyTypes);
}
}
}