Inheritance: IHttpHandler
Esempio n. 1
0
 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;

			}
		}
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
		void EnsureServiceHost ()
		{
			lock (type_lock) {
				Current = this;
				try {
					EnsureServiceHostCore ();
				} finally {
					Current = null;
				}
			}
		}
Esempio n. 5
0
 public AspNetListenerManager(IChannelListener channelListener, HttpTransportBindingElement source, ServiceCredentialsSecurityTokenManager securityTokenManager, ChannelDispatcher dispatcher)
     : base(channelListener, source, securityTokenManager, dispatcher)
 {
     http_handler = SvcHttpHandler.Current;
 }
Esempio n. 6
0
 public AspNetListenerManager(IChannelListener channelListener)
     : base(channelListener)
 {
     http_handler = SvcHttpHandlerFactory.GetHandlerForListener(channelListener);
 }
Esempio n. 7
0
 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);
		}
Esempio n. 9
0
		public AspNetListenerManager (IChannelListener channelListener, HttpTransportBindingElement source, ServiceCredentialsSecurityTokenManager securityTokenManager, ChannelDispatcher dispatcher)
			: base (channelListener, source, securityTokenManager, dispatcher)
		{
			http_handler = SvcHttpHandler.Current;
		}