Start() private method

private Start ( ) : void
return void
        public static void CleanUp()
        {
            using (var navigator = new Navigator())
            {
                navigator.Start(Configuration.StorageAdminSiteUrl);
                var storageAdminPage = navigator.Open <StorageAdminPage>();

                navigator.Navigate <StorageAdminPage>(storageAdminPage.ClickClear);
            }
        }
Exemplo n.º 2
0
        private static void NavigationExample(CrazyflieCopter crazyflie)
        {
            var task = crazyflie.ParamConfigurator.RefreshParameterValue("flightmode.posSet");

            task.Wait();
            Log.Info("flightmode.posSet before: " + task.Result);

            task = crazyflie.ParamConfigurator.RefreshParameterValue("stabilizer.controller");
            task.Wait();
            Log.Info("stabilizer.controller before: " + task.Result);

            //crazyflie.ParamConfigurator.SetValue("stabilizer.controller", (byte)2).Wait();

            //crazyflie.ParamConfigurator.SetValue("flightmode.posSet", (byte)1).Wait();
            //crazyflie.ParamConfigurator.SetValue("stabilizer.controller", (byte)1);
            var navigator = new Navigator(crazyflie);

            try
            {
                navigator.PositionUpdate += Navigator_PositionUpdate;
                navigator.Start(100);

                try
                {
                    navigator.WaitForCalibratedPosition(TimeSpan.FromSeconds(15)).Wait();
                }
                catch (Exception ex)
                {
                    Log.Error("didn't found a calibration; abort demo.");
                    return;
                }

                navigator.Takeoff(1f).Wait();
                Log.Warn("Takeoff now done");
                navigator.NavigateTo(0.4f, 0.4f, 1f).Wait();
                navigator.NavigateTo(1.6f, 0.4f, 1f).Wait();
                navigator.NavigateTo(1.6f, 1.1f, 1f).Wait();
                navigator.NavigateTo(0.4f, 1.1f, 1f).Wait();
                navigator.NavigateTo(0.4f, 0.4f, 1f).Wait();

                navigator.Land(-0.3f).Wait();
            }
            finally
            {
                navigator.Stop().Wait();
            }
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            //  var commandString = buildCommandString();

            var commandStringBuilder = new System.Text.StringBuilder();

            commandStringBuilder.AppendLine(Console.ReadLine());
            commandStringBuilder.AppendLine(Console.ReadLine());
            commandStringBuilder.AppendLine(Console.ReadLine());
            commandStringBuilder.AppendLine(Console.ReadLine());
            commandStringBuilder.Append(Console.ReadLine());
            var commandString = commandStringBuilder.ToString();

            var navigator = new Navigator();

            navigator.Start(commandString.ToString());
        }
Exemplo n.º 4
0
        static void Main()
        {
            var nav = new Navigator();

            nav.Start();
        }
Exemplo n.º 5
0
        public static void Start()
        {
            if (started)
            {
                return;
            }

            started = true;

            Navigator.Start(new NavigationManager(multithreaded: true));
            Finder.Start(new FinderManager());
            Constructor.Start(new ConstructorManager());

            OperationClient.Start(new OperationManager());

            AuthClient.Start(
                types: true,
                property: true,
                queries: true,
                permissions: true,
                operations: true,
                defaultPasswordExpiresLogic: false);

            Navigator.EntitySettings <UserEntity>().OverrideView += (usr, ctrl) =>
            {
                ctrl.Child <EntityLine>("Role").After(new ValueLine().Set(Common.RouteProperty, "[UserEmployeeMixin].AllowLogin"));
                ctrl.Child <EntityLine>("Role").After(new EntityLine().Set(Common.RouteProperty, "[UserEmployeeMixin].Employee"));

                return(ctrl);
            };

            LinksClient.Start(widget: true, contextualMenu: true);

            ProcessClient.Start(package: true, packageOperation: true);
            SchedulerClient.Start();

            FilePathClient.Start();
            ExcelClient.Start(toExcel: true, excelReport: false);
            UserQueryClient.Start();
            ChartClient.Start();
            DashboardClient.Start();

            HelpClient.Start();

            ExceptionClient.Start();

            NoteClient.Start(typeof(UserEntity), /*Note*/ typeof(OrderEntity));
            AlertClient.Start(typeof(UserEntity), /*Alert*/ typeof(OrderEntity));
            SMSClient.Start();

            ProfilerClient.Start();

            OmniboxClient.Start();
            OmniboxClient.Register(new SpecialOmniboxProvider());
            OmniboxClient.Register(new EntityOmniboxProvider());
            OmniboxClient.Register(new DynamicQueryOmniboxProvider());
            OmniboxClient.Register(new UserQueryOmniboxProvider());
            OmniboxClient.Register(new ChartOmniboxProvider());
            OmniboxClient.Register(new UserChartOmniboxProvider());
            OmniboxClient.Register(new DashboardOmniboxProvider());

            SouthwindClient.Start();

            DisconnectedClient.Start();

            Navigator.Initialize();
        }
Exemplo n.º 6
0
 private void StartButton_Click(object sender, EventArgs e) => Navigator.Start(onStopCallback);
Exemplo n.º 7
0
        private void WebStart()
        {
            Navigator.Start(new NavigationManager("haradwaithwinds"));
            Finder.Start(new FinderManager());
            Constructor.Start(new ConstructorManager(), new ClientConstructorManager());

            OperationClient.Start(new OperationManager(), true);

            AuthClient.Start(
                types: true,
                property: true,
                queries: true,
                resetPassword: true,
                passwordExpiration: false,
                singleSignOnMessage: false);

            Navigator.EntitySettings <UserEntity>().CreateViewOverrides()
            .AfterLine((UserEntity u) => u.Role, (html, tc) => html.ValueLine(tc, u => u.Mixin <UserEmployeeMixin>().AllowLogin))
            .AfterLine((UserEntity u) => u.Role, (html, tc) => html.EntityLine(tc, u => u.Mixin <UserEmployeeMixin>().Employee));

            AuthAdminClient.Start(
                types: true,
                properties: true,
                queries: true,
                operations: true,
                permissions: true);

            MailingClient.Start(
                smtpConfig: true,
                newsletter: false,
                pop3Config: false,
                emailReport: false,
                quickLinkFrom: null);

            SMSClient.Start();

            SessionLogClient.Start();
            ExceptionClient.Start();
            UserQueriesClient.Start();
            FilesClient.Start(
                file: true,
                embeddedFile: true,
                filePath: false,
                embeddedFilePath: true);

            MapClient.Start();
            ChartClient.Start();
            ExcelClient.Start(
                toExcelPlain:  true,
                excelReport: false,
                excelAttachment: false);

            WordClient.Start();
            DashboardClient.Start();

            DisconnectedClient.Start();
            ProcessClient.Start(
                packages: true,
                packageOperations: true);

            TranslationClient.Start(new AlreadyTranslatedTranslator(new BingTranslator()),
                                    translatorUser: true,
                                    translationReplacement: false,
                                    instanceTranslator: true);

            SchedulerClient.Start(simpleTask: true);

            NoteClient.Start(typeof(UserEntity), /*Note*/ typeof(OrderEntity));
            AlertClient.Start(typeof(UserEntity), /*Alert*/ typeof(OrderEntity));
            LinksClient.Start(widget: true, contextualItems: true);

            ViewLogClient.Start();
            DiffLogClient.Start();

            HelpClient.Start("Images", "http://localhost:7654/");

            SouthwindClient.Start();

            CacheClient.Start();

            ProfilerClient.Start();

            ScriptHtmlHelper.Manager.MainAssembly = typeof(SouthwindClient).Assembly;
            SignumControllerFactory.MainAssembly  = typeof(SouthwindClient).Assembly;
            SignumControllerFactory.EveryController().AddFilters(ctx =>
                                                                 ctx.FilterInfo.AuthorizationFilters.OfType <AuthenticationRequiredAttribute>().Any() ? null : new AuthenticationRequiredAttribute());
            SignumControllerFactory.EveryController().AddFilters(new SignumExceptionHandlerAttribute());
            SignumControllerFactory.EveryController().AddFilters(new ProfilerFilterAttribute());
            SignumControllerFactory.RegisterAvoidValidate();

            Navigator.Initialize();

            OmniboxClient.Start();
            OmniboxClient.Register(new SpecialOmniboxProvider());
            OmniboxClient.Register(new EntityOmniboxProvider());
            OmniboxClient.Register(new DynamicQueryOmniboxProvider());
            OmniboxClient.Register(new UserQueryOmniboxProvider());
            OmniboxClient.Register(new ChartOmniboxProvider());
            OmniboxClient.Register(new UserChartOmniboxProvider());
            OmniboxClient.Register(new DashboardOmniboxProvider());
            OmniboxClient.Register(new HelpOmniboxProvider());
            OmniboxClient.Register(new MapOmniboxProvider());
        } //WebStart