Initial import
This commit is contained in:
parent
0c865416ca
commit
04804b89a9
279 changed files with 12945 additions and 0 deletions
18
WorkFlowProvider/WFManager.cs
Normal file
18
WorkFlowProvider/WFManager.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue