예제 #1
0
#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();
        }
예제 #2
0
        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)));
        }
예제 #3
0
 public DataSeed(
     UserManager <ApplicationUser> userManager,
     RoleManager <ApplicationRole> roleManager,
     ActionRegister actionRegister)
 {
     this.userManager    = userManager;
     this.roleManager    = roleManager;
     this.actionRegister = actionRegister;
 }
예제 #4
0
        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)));
        }
예제 #5
0
파일: DataSeed.cs 프로젝트: niaher/inboxy
 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;
 }
예제 #7
0
 public RoleTypeaheadInlineSource(ActionRegister actionRegister)
 {
     this.actionRegister = actionRegister;
 }