WebDav Explorer code cleanup
This commit is contained in:
parent
a4c6331a2a
commit
f5b41b5c85
17 changed files with 210 additions and 216 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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>();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue