yavsc/WorkFlowProvider/NpgsqlContentProvider.cs

88 lines
1.6 KiB
C#
Raw Normal View History

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