Example #1
0
 public _ProjectPageModel(
     ge_DbContext context,
     IAuthorizationService authorizationService,
     UserManager <ge_user> userManager,
     IOptions <ge_config> ge_config) : base(context, authorizationService, userManager)
 {
     _config = ge_config.Value;
 }
Example #2
0
        public string getHostHref()
        {
            string DisplayUrl = Request.GetDisplayUrl();
            string PathQuery  = Request.GetEncodedPathAndQuery();
            string HostRef    = DisplayUrl.Substring(0, DisplayUrl.IndexOf(PathQuery));

            // Check for running on host that has an application folder
            ge_config g = (ge_config)_ge_config.Value;

            if (g.hosts_with_app_folder.Contains(HostRef))
            {
                HostRef += "/" + _env.ApplicationName;
            }

            return(HostRef);
        }