/// <summary>
 /// 初始化一个<see cref="WebApiFrameworkInitializer"/>类型的新实例
 /// </summary>
 public WebApiFrameworkInitializer()
 {
     DatabaseInitializer = new DatabaseInitializer();
     EntityInfoHandler = new EntityInfoHandler()
     {
         IocResolver = new IocResolver()
     };
     FunctionHandler = new FunctionHandler()
     {
         IocResolver = new IocResolver()
     };
 }
 /// <summary>
 /// 初始化一个<see cref="LocalFrameworkInitializer"/>类型的新实例
 /// </summary>
 public LocalFrameworkInitializer()
 {
     PlatformToken = PlatformToken.Local;
     DataConfigReseter = new DataConfigReseter();
     DatabaseInitializer = new DatabaseInitializer();
     EntityInfoHandler = new EntityInfoHandler()
     {
         IocResolver = new IocResolver()
     };
     FunctionHandler = new NullFunctionHandler()
     {
         IocResolver = new IocResolver()
     };
 }
 /// <summary>
 /// 初始化一个<see cref="WebApiFrameworkInitializer"/>类型的新实例
 /// </summary>
 public WebApiFrameworkInitializer()
 {
     PlatformToken = PlatformToken.WebApi;
     DataConfigReseter = new DataConfigReseter();
     DatabaseInitializer = new DatabaseInitializer();
     EntityInfoHandler = new EntityInfoHandler()
     {
         IocResolver = new IocResolver()
     };
     FunctionHandler = new FunctionHandler()
     {
         IocResolver = new IocResolver()
     };
 }
Пример #4
0
        /// <summary>
        /// 初始化一个<see cref="WebApiInitializeOptions"/>类型的新实例
        /// </summary>
        public WebApiInitializeOptions(IBasicLoggingInitializer basicLoggingInitializer, IIocInitializer iocInitializer)
        {
            basicLoggingInitializer.CheckNotNull("basicLoggingInitializer");
            iocInitializer.CheckNotNull("iocInitializer");

            PlatformToken = PlatformToken.WebApi;
            DataConfigReseter = new DataConfigReseter();
            DatabaseInitializer = new DatabaseInitializer();
            EntityInfoHandler = new EntityInfoHandler()
            {
                IocResolver = new WebApiIocResolver()
            };
            FunctionHandler = new FunctionHandler()
            {
                IocResolver = new WebApiIocResolver()
            };
            BasicLoggingInitializer = basicLoggingInitializer;
            IocInitializer = iocInitializer;
        }