示例#1
0
        protected void Application_Start(object sender, EventArgs e)
        {
            //JsonSerializerSettings settings = HttpConfiguration.Formatters.JsonFormatter.SerializerSettings;
            //IsoDateTimeConverter dateConverter = new IsoDateTimeConverter
            //{
            //    DateTimeFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.fff'Z'"
            //};
            //settings.Converters.Add(dateConverter);
            RegisteUnity.RegisterForDefault();

            var path    = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "App_Data");
            var fileMap = Path.Combine(path, "CatConfig.xml");

            Cat.Initialize(fileMap);
        }
 public ProcessInfoDomainTest()
 {
     RegisteUnity.RegisterForDefault();
     RegisteUnity.Current.BuildUp <ProcessInfoDomainTest>(this as ProcessInfoDomainTest);
 }
 public TestDomainBase()
 {
     RegisteUnity.RegisterForDefault();
     RegisteUnity.Current.BuildUp <T>(this as T);
 }
 private static void DefaultRegiest()
 {
     RegisteUnity.RegisterForDefault();
 }
示例#5
0
 public WorkFlowTaskServiceTest()
 {
     RegisteUnity.RegisterForDefault();
     RegisteUnity.Current.BuildUp <WorkFlowTaskServiceTest>(this as WorkFlowTaskServiceTest);
 }