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