Exemplo n.º 1
0
 public FilesHelper(String StorageRoot)
 {
     this.StorageRoot     = StorageRoot;
     _portalSosRepository = new PortalSosRepository(db);
     _portalSosService    = new PortalSosService(_portalSosRepository);
     _mailHelper          = new MailHelper();
 }
Exemplo n.º 2
0
 public FileDropController()
 {
     filesHelper    = new FilesHelper(StorageRoot);
     _portalService =
         new PortalSosService(new PortalSosRepository(new InrappSosDbContext()));
     _generalHelper = new GeneralHelper();
 }
Exemplo n.º 3
0
 public ManageController(ApplicationUserManager userManager, ApplicationSignInManager signInManager)
 {
     UserManager       = userManager;
     SignInManager     = signInManager;
     _portalSosService = new PortalSosService(new PortalSosRepository(new InrappSosDbContext(), new InrappSosAstridDbContext()));
     _errorDecsriber   = new CustomIdentityResultErrorDescriber();
 }
Exemplo n.º 4
0
 public RoleController(ApplicationUserManager userManager, ApplicationRoleManager roleManager, FilipApplicationRoleManager filipRoleManager)
 {
     _portalSosService = new PortalSosService(new PortalSosRepository(new InrappSosDbContext(), new InrappSosAstridDbContext()));
     RoleManager       = roleManager;
     FilipRoleManager  = filipRoleManager;
     UserManager       = userManager;
 }
Exemplo n.º 5
0
 public AccountController()
 {
     _errorDecsriber = new CustomIdentityResultErrorDescriber();
     _portalService  =
         new PortalSosService(new PortalSosRepository(new InrappSosDbContext()));
     _generalHelper = new GeneralHelper();
     _mailHelper    = new MailHelper();
 }
Exemplo n.º 6
0
        //private string UrlBase = "/Files/somefiles/";
        //String DeleteURL = "/FileUpload/DeleteFile/?file=";
        //String DeleteType = "GET";

        public FileUploadController()
        {
            filesHelper = new FilesHelper(StorageRoot);
            //filesHelper = new FilesHelper(DeleteURL, DeleteType, StorageRoot, UrlBase, tempPath, serverMapPath);
            _generalHelper = new GeneralHelper();

            _portalService =
                new PortalSosService(new PortalSosRepository(new InrappSosDbContext()));
        }
Exemplo n.º 7
0
        public RoleController()
        {
            _portalSosService = new PortalSosService(new PortalSosRepository(new InrappSosDbContext(), new InrappSosAstridDbContext()));
            var roleStore      = new RoleStore <ApplicationRole>(new InrappSosAstridDbContext());
            var filipRoleStore = new RoleStore <ApplicationRole>(new InrappSosDbContext());

            RoleManager      = new ApplicationRoleManager(roleStore);
            FilipRoleManager = new FilipApplicationRoleManager(filipRoleStore);
        }
Exemplo n.º 8
0
 public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager)
 {
     UserManager     = userManager;
     SignInManager   = signInManager;
     _errorDecsriber = new CustomIdentityResultErrorDescriber();
     _portalService  =
         new PortalSosService(new PortalSosRepository(new InrappSosDbContext()));
     _generalHelper = new GeneralHelper();
     _mailHelper    = new MailHelper();
 }
Exemplo n.º 9
0
 public FilesHelper(String DeleteURL, String DeleteType, String StorageRoot, String UrlBase, String tempPath, String serverMapPath)
 {
     this.DeleteURL       = DeleteURL;
     this.DeleteType      = DeleteType;
     this.StorageRoot     = StorageRoot;
     this.UrlBase         = UrlBase;
     this.tempPath        = tempPath;
     this.serverMapPath   = serverMapPath;
     _portalSosRepository = new PortalSosRepository(db);
     _portalSosService    = new PortalSosService(_portalSosRepository);
     _mailHelper          = new MailHelper();
 }
Exemplo n.º 10
0
 public Initiator()
 {
     _portalSosService = new PortalSosService(new PortalSosRepository(new InrappSosDbContext()));
     if (ConfigurationManager.AppSettings.AllKeys.Contains("DbLogPath"))
     {
         _dbLogPath = ConfigurationManager.AppSettings["DbLogPath"];
     }
     if (ConfigurationManager.AppSettings.AllKeys.Contains("DbLogFileName"))
     {
         _dbLogFileName = ConfigurationManager.AppSettings["DbLogFileName"];
     }
     _dbLogPath = _dbLogPath + time + "_" + _dbLogFileName;
 }
Exemplo n.º 11
0
        public SFTPWatcher()
        {
            _portalService =
                new PortalSosService(new PortalSosRepository(new InrappSosDbContext()));
            _timeToWaitForCompleteDelivery = Convert.ToInt32(ConfigurationManager.AppSettings["TimeSpan"]);
            DateTime currentTime = DateTime.Now;

            _filesHelper = new FilesHelper(StorageRoot);
            _mailHelper  = new MailHelper();
            _smtpClient  = new SmtpClient(ConfigurationManager.AppSettings["MailServer"]);
            _mailSender  = ConfigurationManager.AppSettings["MailSender"];
            _mailRecieverSocialstyrelsen = ConfigurationManager.AppSettings["MailRecieverSocialstyrelsen"];
        }
Exemplo n.º 12
0
 public HasPermissionAttribute(string permission)
 {
     _permission       = permission;
     _portalSosService = new PortalSosService(new PortalSosRepository(new InrappSosDbContext(), new InrappSosAstridDbContext()));
 }
Exemplo n.º 13
0
 public FilesHelper()
 {
     _portalSosRepository = new PortalSosRepository(db);
     _portalSosService    = new PortalSosService(_portalSosRepository);
     _mailHelper          = new MailHelper();
 }
Exemplo n.º 14
0
 public GeneralHelper()
 {
     _portalSosRepository = new PortalSosRepository(db);
     _portalSosService    = new PortalSosService(_portalSosRepository);
 }
Exemplo n.º 15
0
 public SearchController(FilipApplicationRoleManager filipRoleManager, FilipApplicationUserManager filipUserManager)
 {
     _portalSosService = new PortalSosService(new PortalSosRepository(new InrappSosDbContext(), new InrappSosAstridDbContext()));
     FilipRoleManager  = filipRoleManager;
     FilipUserManager  = filipUserManager;
 }
Exemplo n.º 16
0
        public AccountController()
        {
            _portalSosService = new PortalSosService(new PortalSosRepository(new InrappSosDbContext(), new InrappSosAstridDbContext()));

            _errorDecsriber = new CustomIdentityResultErrorDescriber();
        }
Exemplo n.º 17
0
 public SystemController()
 {
     _portalSosService = new PortalSosService(new PortalSosRepository(new InrappSosDbContext(), new InrappSosAstridDbContext()));
     _filesHelper      = new FilesHelper();
 }
Exemplo n.º 18
0
 public HistoryController()
 {
     _portalService =
         new PortalSosService(new PortalSosRepository(new InrappSosDbContext()));
 }
Exemplo n.º 19
0
 public AdminController(ApplicationUserManager userManager, ApplicationRoleManager roleManager)
 {
     UserManager       = userManager;
     RoleManager       = roleManager;
     _portalSosService = new PortalSosService(new PortalSosRepository(new InrappSosDbContext(), new InrappSosAstridDbContext()));
 }
Exemplo n.º 20
0
 public HomeController()
 {
     _portalSosService = new PortalSosService(new PortalSosRepository(new InrappSosDbContext(), new InrappSosAstridDbContext()));
 }
Exemplo n.º 21
0
 public FileUploadController()
 {
     _filesHelper      = new FilesHelper(StorageRoot);
     _generalHelper    = new GeneralHelper();
     _portalSosService = new PortalSosService(new PortalSosRepository(new InrappSosDbContext(), new InrappSosAstridDbContext()));
 }