Files
yavsc/WorkFlowProvider/NpgsqlContentProvider.cs
Paul Schneider fa93ce7fee - a module for IT services business
- Mvc-like action binding in the WF web api ... ?

* Yavsc.sln:
* Web.csproj:
* MvcActionValueBinder.cs:
* yavscModel.csproj:
* WFOrder.cs:
* IWFOrder.cs:
* BasketImpact.cs:
* ProjectInfo.cs:
* IWFModule.cs:
* IWFCommand.cs:
* WorkFlowController.cs:
* NewProjectModel.cs:
* IContentProvider.cs:
* ITCPNpgsqlProvider.cs:
* WorkFlowProvider.csproj:
* ITContentProvider.csproj:
* AssemblyInfo.cs:
* OrderStatusChangedEventArgs.cs: 

* NpgsqlContentProvider.cs:
2014-07-24 05:04:56 +02:00

89 lines
1.6 KiB
C#

using System;
using Npgsql;
using NpgsqlTypes;
using System.Configuration;
using System.Collections.Specialized;
using yavscModel.WorkFlow;
using System.Web.Mvc;
namespace WorkFlowProvider
{
public class NpgsqlContentProvider: IContentProvider
{
public IWFOrder CreateOrder ()
{
throw new NotImplementedException ();
}
public IWFOrder ImapctOrder (string orderid, FormCollection col)
{
throw new NotImplementedException ();
}
public bool[] IsFinalStatus {
get {
throw new NotImplementedException ();
}
}
string applicationName=null;
public string ApplicationName {
get {
return applicationName;
}
}
string cnxstr = null;
public NpgsqlContentProvider ()
{
Initialize("NpgsqlYavscContentProvider",ConfigurationManager.AppSettings);
}
public void Initialize (string name, NameValueCollection config)
{
cnxstr = ConfigurationManager.ConnectionStrings [config ["connectionStringName"]].ConnectionString;
applicationName = config["applicationName"] ?? "/";
}
protected NpgsqlConnection CreateConnection ()
{
return new NpgsqlConnection (cnxstr);
}
#region IDisposable implementation
public void Dispose ()
{
}
#endregion
public string Order (IWFOrder c)
{
throw new NotImplementedException ();
}
public IContent GetBlob (string orderId)
{
throw new NotImplementedException ();
}
public int GetStatus (string orderId)
{
throw new NotImplementedException ();
}
public string[] StatusLabels {
get {
throw new NotImplementedException ();
}
}
#region IITContentProvider implementation
#endregion
}
}