예제 #1
0
 public Node(BeltContext context, List <Node> inputs, List <Node> outputs)
 {
     Context     = context;
     Inputs      = inputs;
     Outputs     = outputs;
     _outputRate = -1;
 }
예제 #2
0
 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})!");
     }
 }
예제 #4
0
 public UserController(
     BeltContext context,
     UserManager <User> userManager,
     RoleManager <IdentityRole> roleManager,
     SignInManager <User> signInManager)
 {
     _context       = context;
     _userManager   = userManager;
     _signInManager = signInManager;
     _roleManager   = roleManager;
 }
예제 #5
0
        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));
            }
        }
예제 #6
0
 // here we can "inject" our context service into the constructor
 public HomeController(BeltContext context) => dbContext = context;
예제 #7
0
 public BeltPlan(BeltContext context, ImmutableList <Input> inputNodes)
 {
     Context     = context;
     _inputNodes = inputNodes;
 }
 public RegisterController(BeltContext context)
 {
     dbContext = context;
 }
예제 #9
0
 public Merger(BeltContext context, Node output, Node outputsOldInput) : base(context, new List <Node>(), new List <Node>())
 {
     Outputs.Add(output);
     output.ReassignInput(outputsOldInput, this);
 }
예제 #10
0
 public BeltBalancingScenario(ImmutableList <decimal> beltsIn, int beltsOut, BeltContext context)
 {
     BeltsIn  = beltsIn;
     BeltsOut = beltsOut;
     Context  = context;
 }
 public ActivitiesController(BeltContext context)
 {
     dbContext = context;
 }
예제 #12
0
 public Output(BeltContext context, Node input) : base(context, new List <Node>(), null)
 {
     Inputs.Add(input);
 }
예제 #13
0
 public HomeController([FromServices] BeltContext context)
 {
     _context = context;
 }
예제 #14
0
 private void PresetSelection_SelectedIndexChanged(object sender, EventArgs e)
 {
     BeltContext = PresetSelection.SelectedItem as BeltContext;
 }
예제 #15
0
 public Input(BeltContext context, decimal rate) : base(context, null, new List <Node>())
 {
     OutputRate = rate;
     Outputs.Add(new Output(context, this));
 }
예제 #16
0
 public Splitter(BeltContext context, Node input) : this(context, input, 1)
 {
 }
예제 #17
0
 public HomeController(BeltContext context)
 {
     _context = context;
 }
예제 #18
0
 public HomeController(BeltContext Context)
 {
     context = Context;
 }
예제 #19
0
 public UsersController(BeltContext context)
 {
     _context = context;
 }
예제 #20
0
 public EventController(BeltContext context)
 {
     _context = context;
 }
예제 #21
0
 public DashboardController(BeltContext context)
 {
     dbContext = context;
 }
예제 #22
0
 public IdeasController(BeltContext context)
 {
     _context = context;
 }
예제 #23
0
 public ActivityController(BeltContext context)
 {
     _context = context;
 }
예제 #24
0
 public DashController(BeltContext context)
 {
     _context = context;
 }
예제 #25
0
 public LoginController(BeltContext context)
 {
     dbContext = context;
 }
예제 #26
0
 public Merger(BeltContext context) : base(context, new List <Node>(), new List <Node>())
 {
     Outputs.Add(new Output(Context, this));
 }