Ejemplo n.º 1
0
 /// <summary>
 /// Http服务
 /// </summary>
 public HttpServer()
 {
     this.httpActionList = new HttpActionList();
     this.ModelBinder = new DefaultModelBinder();
     this.GlobalFilter = new GlobalFilters();
     this.FilterAttributeProvider = new FilterAttributeProvider();
     this.DependencyResolver = new DefaultDependencyResolver();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Http服务
        /// </summary>
        public HttpServer()
        {
            this.httpActionList          = new HttpActionList();
            this.ModelBinder             = new DefaultModelBinder();
            this.GlobalFilter            = new GlobalFilters();
            this.MIMECollection          = new HttpMIMECollection();
            this.FilterAttributeProvider = new FilterAttributeProvider();
            this.DependencyResolver      = new DefaultDependencyResolver();

            this.MIMECollection.FillBasicMIME();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Http服务
        /// </summary>
        public HttpMiddleware()
        {
            this.httpActionList = new HttpActionList();
            this.ModelBinder = new DefaultModelBinder();
            this.GlobalFilters = new HttpGlobalFilters();
            this.MIMECollection = new HttpMIMECollection();
            this.FilterAttributeProvider = new DefaultFilterAttributeProvider();
            this.DependencyResolver = new DefaultDependencyResolver();

            this.MIMECollection.FillBasicMIME();
            DomainAssembly.GetAssemblies().ForEach(item => this.BindController(item));
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Http服务
        /// </summary>
        public HttpMiddleware()
        {
            this.httpActionList          = new HttpActionList();
            this.ModelBinder             = new DefaultModelBinder();
            this.GlobalFilters           = new HttpGlobalFilters();
            this.MIMECollection          = new HttpMIMECollection();
            this.FilterAttributeProvider = new DefaultFilterAttributeProvider();
            this.DependencyResolver      = new DefaultDependencyResolver();

            this.MIMECollection.FillBasicMIME();
            DomainAssembly.GetAssemblies().ForEach(item => this.BindController(item));
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Http服务
        /// </summary>
        public HttpMiddleware()
        {
            this.httpActionList          = new HttpActionList();
            this.ModelBinder             = new DefaultModelBinder();
            this.GlobalFilters           = new HttpGlobalFilters();
            this.MIMECollection          = new HttpMIMECollection();
            this.FilterAttributeProvider = new DefaultFilterAttributeProvider();
            this.DependencyResolver      = new DefaultDependencyResolver();

            this.MIMECollection.FillBasicMIME();
            this.BindController();
        }