private IHttpHandlerFactory GetFactory(string type) { HandlerFactoryCache entry = (HandlerFactoryCache)_handlerFactories[type]; if (entry == null) { entry = new HandlerFactoryCache(type); _handlerFactories[type] = entry; } return entry.Factory; }
private IHttpHandlerFactory GetFactory(HttpHandlerAction mapping) { HandlerFactoryCache cache = (HandlerFactoryCache) this._handlerFactories[mapping.Type]; if (cache == null) { cache = new HandlerFactoryCache(mapping); this._handlerFactories[mapping.Type] = cache; } return cache.Factory; }
// // Request mappings management functions // private IHttpHandlerFactory GetFactory(HttpHandlerAction mapping) { HandlerFactoryCache entry = (HandlerFactoryCache)_handlerFactories[mapping.Type]; if (entry == null) { entry = new HandlerFactoryCache(mapping); _handlerFactories[mapping.Type] = entry; } return entry.Factory; }
private IHttpHandlerFactory GetFactory(string type) { HandlerFactoryCache cache = (HandlerFactoryCache) this._handlerFactories[type]; if (cache == null) { cache = new HandlerFactoryCache(type); this._handlerFactories[type] = cache; } return cache.Factory; }