void EnsureServiceHost() { lock (type_lock) { Current = this; try { EnsureServiceHostCore(); } finally { Current = null; } } }
public IHttpHandler GetHandler (HttpContext context, string requestType, string url, string pathTranslated) { lock (handlers) { if (handlers.ContainsKey (url)) return handlers [url]; LoadTypeFromSvc (pathTranslated, url, context); if (service_type == null) throw new Exception (String.Format ( "Could not find service for url : '{0}'", url)); SvcHttpHandler handler = new SvcHttpHandler (service_type, factory_type, url); handlers [url] = handler; return handler; } }
public IHttpHandler GetHandler(HttpContext context, string requestType, string url, string pathTranslated) { if (handlers.ContainsKey(url)) { return(handlers [url]); } LoadTypeFromSvc(pathTranslated, url, context); if (service_type == null) { throw new Exception(String.Format( "Could not find service for url : '{0}'", url)); } SvcHttpHandler handler = new SvcHttpHandler(service_type, factory_type, url); handlers [url] = handler; return(handler); }
void EnsureServiceHost () { lock (type_lock) { Current = this; try { EnsureServiceHostCore (); } finally { Current = null; } } }
public AspNetListenerManager(IChannelListener channelListener, HttpTransportBindingElement source, ServiceCredentialsSecurityTokenManager securityTokenManager, ChannelDispatcher dispatcher) : base(channelListener, source, securityTokenManager, dispatcher) { http_handler = SvcHttpHandler.Current; }
public AspNetListenerManager(IChannelListener channelListener) : base(channelListener) { http_handler = SvcHttpHandlerFactory.GetHandlerForListener(channelListener); }
public AspNetListenerManager(IChannelListener channelListener, HttpTransportBindingElement source) : base(channelListener, source) { http_handler = SvcHttpHandlerFactory.GetHandlerForListener(channelListener); }
public AspNetListenerManager (IChannelListener channelListener, HttpTransportBindingElement source) : base (channelListener, source) { http_handler = SvcHttpHandlerFactory.GetHandlerForListener (channelListener); }
public AspNetListenerManager (IChannelListener channelListener, HttpTransportBindingElement source, ServiceCredentialsSecurityTokenManager securityTokenManager, ChannelDispatcher dispatcher) : base (channelListener, source, securityTokenManager, dispatcher) { http_handler = SvcHttpHandler.Current; }