private void App_PostAuthenticateRequest(object sender, EventArgs eventArgs) { string file = TenantStaticContentHelper.GetFile(HttpContext.Current); if (!string.IsNullOrWhiteSpace(file)) { //We found the requested file on the tenant's "wwwroot" directory. HttpContext.Current.RewritePath(file); } }
/// <summary> /// This investigates and serves static resources present in the tenant's wwwroot folder. /// </summary> private void ServeRequestAsTenantResource() { string tenant = TenantConvention.GetTenant(); string file = TenantStaticContentHelper.GetFile(tenant, FrapidHttpContext.GetCurrent()); if (!string.IsNullOrWhiteSpace(file)) { //We found the requested file on the tenant's "wwwroot" directory. FrapidHttpContext.GetCurrent().RewritePath(file); } }