Inheritance: IHttpHandler
Exemplo 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;

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