Exemple #1
0
 public AccountController(IWebAppContext appContext
                          , IAuthenticationService authenticationService
                          , IOrganizationBaseService organizationBaseService
                          )
     : base(appContext)
 {
     _authenticationService   = authenticationService;
     _organizationBaseService = organizationBaseService;
 }
Exemple #2
0
        public OrgDataServer(IHttpContextAccessor httpContext, IOrganizationBaseService organizationBaseService)
        {
            var uniqueName = httpContext.HttpContext.GetRouteOrQueryString("org")?.ToString();

            if (uniqueName.IsNotEmpty())
            {
                var baseOrg = organizationBaseService.FindByUniqueName(uniqueName);
                if (baseOrg != null)
                {
                    this.OrganizationBaseId = baseOrg.OrganizationBaseId;
                    this.DataServerName     = baseOrg.DataServerName;
                    this.DataAccountName    = baseOrg.DataAccountName;
                    this.DataPassword       = baseOrg.DataPassword;
                    this.DatabaseName       = baseOrg.DatabaseName;
                    this.UniqueName         = baseOrg.UniqueName;
                }
            }
        }
 public OrganizationFilterAttribute(IWebAppContext appContext, IOrganizationBaseService organizationBaseService)
 {
     _appContext = appContext;
     _organizationBaseService = organizationBaseService;
 }