* Web.csproj:

* T.cs:
* IModule.cs:
* App.master:
* IProvider.cs:
* Error.aspx:
* AOEMail.aspx:
* Login.aspx:
* Index.aspx:
* Admin.aspx:
* yavscModel.csproj:
* WFManager.cs:
* Index.aspx:
* AddRole.aspx:
* Profile.aspx:
* Edit.aspx:
* Register.aspx:
* Index.aspx:
* RoleList.aspx:
* UserList.aspx:
* Validate.aspx:
* RemovePost.aspx:
* Index.aspx:
* BasketImpact.cs:
* Brand.aspx:
* Delete.aspx:
* Create.aspx:
* Backups.aspx:
* HomeController.cs:
* BlogManager.cs:
* Restore.aspx:
* Details.aspx:
* TitleNotFound.aspx:
* Product.aspx:
* AdminController.cs:
* Command.aspx:
* Service.aspx:
* BlogProvider.cs:
* NewProject.aspx:
* Catalog.aspx:
* Restored.aspx:
* BasketController.cs:
* AccountController.cs:
* WorkFlowController.cs:
* BlogsApiController.cs:
* ChangePassword.aspx:
* RemoveRoleQuery.aspx:
* CreateBackup.aspx:
* IContentProvider.cs:
* BackOfficeController.cs:
* FrontOfficeController.cs:
* NpgsqlBlogProvider.cs:
* NpgsqlContentProvider.cs:
* RegistrationPending.aspx:
* ProductCategory.aspx:
* FrontOfficeApiController.cs:
* ChangePasswordSuccess.aspx:
* ReferenceNotFound.aspx: 
* BackupCreated.aspx

Fixes many HTTP 500
Refactoring on the go
This commit is contained in:
Paul Schneider 2014-10-06 03:05:57 +02:00
commit 685c03b37e
59 changed files with 384 additions and 392 deletions

17
yavscModel/IModule.cs Normal file
View file

@ -0,0 +1,17 @@
using System;
using System.Configuration;
using System.Collections.Specialized;
namespace yavscModel
{
public interface IModule
{
void Install();
void Uninstall();
ConfigurationSection DefaultConfig (string appName, string cnxStr);
bool Active { get; set; }
string ApplicationName { get; set; }
void Initialize (string name, NameValueCollection config);
}
}

View file

@ -1,12 +0,0 @@
using System;
using System.Collections.Specialized;
namespace yavscModel
{
public interface IProvider
{
string ApplicationName { get; set; }
void Initialize (string name, NameValueCollection config);
}
}

View file

@ -5,7 +5,7 @@ using System.Web.Mvc;
namespace yavscModel.WorkFlow
{
public interface IContentProvider : IProvider, IDisposable
public interface IContentProvider : IModule, IDisposable
{
/// <summary>
@ -18,6 +18,7 @@ namespace yavscModel.WorkFlow
StatusChange[] GetWrittingStatuses (long wrid);
StatusChange[] GetEstimateStatuses (long estid);
long CreateEstimate (string client, string title);
Estimate [] GetEstimates(string client);
Estimate GetEstimate (long estimid);
long Write (long estid, string desc, decimal ucost, int count, long productid);
void DropWritting (long wrid);

View file

@ -34,6 +34,7 @@
<Reference Include="nunit.framework" />
<Reference Include="System.Web" />
<Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<Reference Include="System.Configuration" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
@ -57,13 +58,13 @@
<Compile Include="WorkFlow\IWFModule.cs" />
<Compile Include="WorkFlow\IWFOrder.cs" />
<Compile Include="WorkFlow\OrderStatusChangedEventArgs.cs" />
<Compile Include="IProvider.cs" />
<Compile Include="Blogs\BlogEntry.cs" />
<Compile Include="Blogs\Blog.cs" />
<Compile Include="Blogs\BlogEntryCollection.cs" />
<Compile Include="Blogs\Comment.cs" />
<Compile Include="Blogs\FindBlogEntryFlags.cs" />
<Compile Include="WorkFlow\StatusChange.cs" />
<Compile Include="IModule.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>