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