yavsc/WorkFlowProvider/NpgsqlContentProvider.cs

89 lines
1.6 KiB
C#

10 years ago
using System;
using Npgsql;
using NpgsqlTypes;
using System.Configuration;
using System.Collections.Specialized;
using yavscModel.WorkFlow;
using System.Web.Mvc;
10 years ago
namespace WorkFlowProvider
{
public class NpgsqlContentProvider: IContentProvider
{
public IWFOrder CreateOrder ()
10 years ago
{
throw new NotImplementedException ();
}
public IWFOrder ImapctOrder (string orderid, FormCollection col)
10 years ago
{
throw new NotImplementedException ();
}
public bool[] IsFinalStatus {
get {
throw new NotImplementedException ();
}
10 years ago
}
string applicationName=null;
10 years ago
public string ApplicationName {
get {
return applicationName;
}
10 years ago
}
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 ()
10 years ago
{
return new NpgsqlConnection (cnxstr);
}
#region IDisposable implementation
public void Dispose ()
{
}
#endregion
public string Order (IWFOrder c)
10 years ago
{
throw new NotImplementedException ();
10 years ago
}
public IContent GetBlob (string orderId)
10 years ago
{
throw new NotImplementedException ();
10 years ago
}
public int GetStatus (string orderId)
10 years ago
{
throw new NotImplementedException ();
10 years ago
}
public string[] StatusLabels {
get {
throw new NotImplementedException ();
10 years ago
}
}
#region IITContentProvider implementation
10 years ago
10 years ago
#endregion
}
}