示例#1
0
 // check if ((System.Web.Configuration.WebContext)configHostingContext).ApplicationLevel == WebApplicationLevel.AboveApplication
 public virtual bool IsWebConfigAboveApplication(object configHostingContext)
 {
     // there are currently only two known implementations of HostingContext, so we are
     // pretty much guaranteed to be hosted in ASP.Net here. However, it may not be
     // through our BuildProvider, so we still need to do some work in the base class.
     // The HostedAspNetEnvironment subclass can perform more efficiently using reflection
     return(SystemWebHelper.IsWebConfigAboveApplication(configHostingContext));
 }
 public virtual bool IsWebConfigAboveApplication(object configHostingContext)
 {
     return(SystemWebHelper.IsWebConfigAboveApplication(configHostingContext));
 }