#pragma warning disable IDE0060 // Remove unused parameter public static void Main(string[] args) #pragma warning restore IDE0060 // Remove unused parameter { // TODO add debug modifiers to tweak stuff while debugging // Load app settings: SettingsManager.LoadSettings(); // Init all HTTP actions ActionRegister.Register(); if (!CoreState.SettingsInstance.IsFirstLaunch) { HardwareHelper.InitHardware(); } else { ConsoleManager.LogInfo("Waiting for hardware initialization."); } // Server initialization: HttpServer server = new HttpServer(CoreState.SettingsInstance.LocalServerAddress, CoreState.SettingsInstance.LocalServerPort); Task listen = server.Listen(); listen.GetAwaiter().GetResult(); }
public nspec() { context = new ActionRegister(AddContext); describe = new ActionRegister(AddContext); it = new ActionRegister((name, action) => Exercise(new Example(name, action, pending: action == todo))); xit = new ActionRegister((name, action) => Exercise(new Example(name, action, pending: true))); }
public DataSeed( UserManager <ApplicationUser> userManager, RoleManager <ApplicationRole> roleManager, ActionRegister actionRegister) { this.userManager = userManager; this.roleManager = roleManager; this.actionRegister = actionRegister; }
public nspec() { context = new ActionRegister(AddContext); xcontext = new ActionRegister(AddIgnoredContext); describe = new ActionRegister(AddContext); xdescribe = new ActionRegister(AddIgnoredContext); it = new ActionRegister((name, tags, action) => AddExample(new Example(name, tags, action, pending: action == todo))); xit = new ActionRegister((name, tags, action) => AddExample(new Example(name, tags, action, pending: true))); }
public DataSeed( UserManager <ApplicationUser> userManager, RoleManager <ApplicationRole> roleManager, ActionRegister actionRegister, CoreDbContext context, TicketDbContext ticketContext) { this.userManager = userManager; this.roleManager = roleManager; this.actionRegister = actionRegister; this.context = context; this.ticketContext = ticketContext; }
public RoleTypeaheadRemoteSource(ActionRegister actionRegister) { this.actionRegister = actionRegister; }
public RoleTypeaheadInlineSource(ActionRegister actionRegister) { this.actionRegister = actionRegister; }