internal object Create(string type) { // HACKHACK: for now, let uncreatable types through and error later (for .soap factory) // This design should change - developers will want to know immediately // when they misspell a type return(HttpRuntime.CreateNonPublicInstanceByWebObjectActivator(GetHandlerType(type))); }
public IHttpHandler GetHandler(HttpContext context, String requestType, String url, String pathTranslated) { if (_handler == null) { _handler = (IHttpHandler)HttpRuntime.CreateNonPublicInstanceByWebObjectActivator(_handlerType); } return(_handler); }
internal Object Create() { // HACKHACK: for now, let uncreatable types through and error later (for .soap factory) // This design should change - developers will want to know immediately // when they misspell a type if (_type == null) { Type t = ConfigUtil.GetType(Type, "type", this); // throw for bad types in deferred case if (!ConfigUtil.IsTypeHandlerOrFactory(t)) { throw new ConfigurationErrorsException( SR.GetString(SR.Type_not_factory_or_handler, Type), ElementInformation.Source, ElementInformation.LineNumber); } _type = t; } return(HttpRuntime.CreateNonPublicInstanceByWebObjectActivator(_type)); }
internal /*public*/ IHttpModule Create() { return((IHttpModule)HttpRuntime.CreateNonPublicInstanceByWebObjectActivator(_type)); }