Example #1
0
 public IHttpAspect GetAspectHandler()
 {
     IHttpAspect handler = default(IHttpAspect);
     if (!this.Single)
     {
         handlers.TryGetValue(this.Name, out handler);
     }
     if (handler == default(IHttpAspect))
     {
         handler = new DefaultConfigObjectFactory<IHttpAspect>().CreateInstance(this);
         if (handler != default(IHttpAspect))
             handlers[this.Name] = handler;
     }
     return handler;
 }
Example #2
0
        public IHttpAspect GetAspectHandler()
        {
            IHttpAspect handler = default(IHttpAspect);

            if (!this.Single)
            {
                handlers.TryGetValue(this.Name, out handler);
            }
            if (handler == default(IHttpAspect))
            {
                handler = new DefaultConfigObjectFactory <IHttpAspect>().CreateInstance(this);
                if (handler != default(IHttpAspect))
                {
                    handlers[this.Name] = handler;
                }
            }
            return(handler);
        }