using Autofac;

namespace APT.UT.WebApi.App_Start
{
    public static class DIConfig
    {
        public static void RegisterComponents(this ContainerBuilder builder)
        {
            APT.Utility.BaseServiceRegister.RegisterComponents(builder);
            builder.RegisterMesService();
            builder.RegisterBaseService();
       

        }

        private static void RegisterBaseService(this ContainerBuilder builder)
        {
           
            //builder.RegisterType<PFCodeRuleSerialService>().As<IPFCodeRuleSerialService>().InstancePerLifetimeScope();
            //builder.RegisterType<PFCodeRuleService>().As<IPFCodeRuleService>().InstancePerLifetimeScope();
            //builder.RegisterType<PFFormService>().As<IPFFormService>().InstancePerLifetimeScope();
            //builder.RegisterType<PFLabelService>().As<IPFLabelService>().InstancePerLifetimeScope();
            //builder.RegisterType<PFMenuService>().As<IPFMenuService>().InstancePerLifetimeScope();
            //builder.RegisterType<PFAppMenuService>().As<IPFAppMenuService>().InstancePerLifetimeScope();
            //builder.RegisterType<FMOrganizationService>().As<IFMOrganizationService>().InstancePerLifetimeScope();
            //builder.RegisterType<EntityOperateService>().As<IEntityOperateService>().InstancePerLifetimeScope();
            //builder.RegisterType<MesLogService>().As<IMesLog>().InstancePerLifetimeScope();
            //builder.RegisterType<PFLastVersionService>().As<IPFLastVersionService>().InstancePerLifetimeScope();

   
        }

        private static void RegisterMesService(this ContainerBuilder builder)
        {
            //builder.RegisterType<FMWorkstageCalendarService>().As<IFMWorkstageCalendarService>().InstancePerLifetimeScope();
            //builder.RegisterType<PFSysLogService>().As<IPFSysLogService>().InstancePerLifetimeScope();
            //builder.RegisterType<PFFlowService>().As<IPFFlowService>().InstancePerLifetimeScope();
           
            //builder.RegisterType<ProductProcessService>().As<IProductProcessService>().InstancePerLifetimeScope();
        }
    }
}
