Exemplo n.º 1
0
    public AuthWebService()
    {
        //Not implemention Ioc

        //Capture the App location where the logger can find its configuration file
        SSO.Common.StaticMembers.ApplicationDirectory = System.AppDomain.CurrentDomain.BaseDirectory;

        _dataContext            = new AppDataContext(new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["AppDbConnection"].ConnectionString));
        _crypto                 = new Crypto();
        _cacheManagement        = new MemoryCacheManagement();
        _appUserRepository      = new AppUserRepository(_dataContext);
        _logger                 = new Log4NetLogger();
        _registrationManagement = new RegistrationManagement(_appUserRepository, _logger, _crypto);
        _loginManagement        = new LoginManagement(_appUserRepository, _logger, _crypto, _cacheManagement);
    }
 public AuthWcfService(ILoginManagement loginManagement, IRegistrationManagement registrationManagement)
 {
     _loginManagement        = loginManagement;
     _registrationManagement = registrationManagement;
 }
Exemplo n.º 3
0
 public LoginController(ILoginManagement loginManagement, IJwtAuthenticationManager jwtAuthenticationManager)
 {
     _loginManagement          = loginManagement;
     _jwtAuthenticationManager = jwtAuthenticationManager;
 }