public Node(BeltContext context, List <Node> inputs, List <Node> outputs) { Context = context; Inputs = inputs; Outputs = outputs; _outputRate = -1; }
public ActivityController( BeltContext context, UserManager <User> userManager, SignInManager <User> signInManager) { _context = context; _userManager = userManager; _signInManager = signInManager; }
public BeltSubtractingScenario(decimal beltIn, decimal subtractedAmount, BeltContext context) { BeltIn = beltIn; SubtractedAmount = subtractedAmount; Context = context; if (SubtractedAmount > BeltIn) { throw new ArgumentOutOfRangeException($"The amount to be subtracted ({SubtractedAmount}) is greater than the input ({BeltIn})!"); } }
public UserController( BeltContext context, UserManager <User> userManager, RoleManager <IdentityRole> roleManager, SignInManager <User> signInManager) { _context = context; _userManager = userManager; _signInManager = signInManager; _roleManager = roleManager; }
public Splitter(BeltContext context, Node input, int outputs) : base(context, new List <Node>(), new List <Node>()) { if (outputs > context.SplitterOutputs) { throw new ArgumentException("Can't have more outputs than the context allows!"); } Inputs.Add(input); for (int i = 0; i < outputs; i++) { Outputs.Add(new Output(context, this)); } }
// here we can "inject" our context service into the constructor public HomeController(BeltContext context) => dbContext = context;
public BeltPlan(BeltContext context, ImmutableList <Input> inputNodes) { Context = context; _inputNodes = inputNodes; }
public RegisterController(BeltContext context) { dbContext = context; }
public Merger(BeltContext context, Node output, Node outputsOldInput) : base(context, new List <Node>(), new List <Node>()) { Outputs.Add(output); output.ReassignInput(outputsOldInput, this); }
public BeltBalancingScenario(ImmutableList <decimal> beltsIn, int beltsOut, BeltContext context) { BeltsIn = beltsIn; BeltsOut = beltsOut; Context = context; }
public ActivitiesController(BeltContext context) { dbContext = context; }
public Output(BeltContext context, Node input) : base(context, new List <Node>(), null) { Inputs.Add(input); }
public HomeController([FromServices] BeltContext context) { _context = context; }
private void PresetSelection_SelectedIndexChanged(object sender, EventArgs e) { BeltContext = PresetSelection.SelectedItem as BeltContext; }
public Input(BeltContext context, decimal rate) : base(context, null, new List <Node>()) { OutputRate = rate; Outputs.Add(new Output(context, this)); }
public Splitter(BeltContext context, Node input) : this(context, input, 1) { }
public HomeController(BeltContext context) { _context = context; }
public HomeController(BeltContext Context) { context = Context; }
public UsersController(BeltContext context) { _context = context; }
public EventController(BeltContext context) { _context = context; }
public DashboardController(BeltContext context) { dbContext = context; }
public IdeasController(BeltContext context) { _context = context; }
public ActivityController(BeltContext context) { _context = context; }
public DashController(BeltContext context) { _context = context; }
public LoginController(BeltContext context) { dbContext = context; }
public Merger(BeltContext context) : base(context, new List <Node>(), new List <Node>()) { Outputs.Add(new Output(Context, this)); }