示例#1
0
 public StepFacade(IServiceProvider serviceProvider, ProductionDbContext dbContext)
 {
     DbContext          = dbContext;
     DbSet              = DbContext.Set <StepModel>();
     StepLogic          = serviceProvider.GetService <StepLogic>();
     StepIndicatorLogic = serviceProvider.GetService <StepIndicatorLogic>();
 }
示例#2
0
 private void Awake()
 {
     if (ReferenceEquals(stepLogicInstance, null))
     {
         stepLogicInstance = this;
     }
     else
     {
         return;
     }
 }
示例#3
0
 public MachineLogic(MachineEventLogic machineEventLogic, StepLogic stepLogic, IIdentityService identityService, ProductionDbContext dbContext) : base(identityService, dbContext)
 {
     this.MachineEventLogic = machineEventLogic;
     this.StepLogic         = stepLogic;
 }