WebDav Explorer code cleanup

This commit is contained in:
vfedosevich 2014-12-30 03:41:58 -08:00
parent a4c6331a2a
commit f5b41b5c85
17 changed files with 210 additions and 216 deletions

View file

@ -1,19 +0,0 @@
using Ninject.Activation;
using WebsitePanel.WebDavPortal.Config;
using WebsitePanel.WebDavPortal.Cryptography;
namespace WebsitePanel.WebDavPortal.DependencyInjection
{
public class Rfc2898CryptographyProvider : Provider<Rfc2898Cryptography>
{
protected override Rfc2898Cryptography CreateInstance(IContext context)
{
var rfc2898Cryptography =
new Rfc2898Cryptography(WebDavAppConfigManager.Instance.Rfc2898CryptographyParameters.PasswordHash,
WebDavAppConfigManager.Instance.Rfc2898CryptographyParameters.SaltKey,
WebDavAppConfigManager.Instance.Rfc2898CryptographyParameters.VIKey);
return rfc2898Cryptography;
}
}
}

View file

@ -13,7 +13,7 @@ namespace WebsitePanel.WebDavPortal.DependencyInjection
Bind<HttpSessionState>().ToConstant(HttpContext.Current.Session);
Bind<IWebDavManager>().ToProvider<WebDavManagerProvider>();
Bind<AccountModel>().ToProvider<AccountInfoProvider>();
Bind<ICryptography>().ToProvider<Rfc2898CryptographyProvider>();
Bind<ICryptography>().To<CryptoUtils>();
}
}
}