Beispiel #1
0
        static void start()
        {
            DConsole.Print("ScopeName: ");
            string input = DConsole.ReadLine();

            ScopeName = input;
            cfgSQLConnectionString_InFlow = string.Format(cfgSQLConnectionString_InFlow, ScopeName);


            DConsole.Print("init? (yes/no)");
            string init = DConsole.ReadLine();


            if (init.Equals("yes"))
            {
                setUpScope();
            }
            else
            {
                listCompanyScopes();
            }
            DConsole.Print("clean? (yes/no)");
            string clean = DConsole.ReadLine();

            if (clean.Equals("yes"))
            {
                cleanScope();
            }


            Console.ReadLine();
        }
Beispiel #2
0
        static void cleanScope()
        {
            InFlowWFM wfm = new InFlowWFM(cfgWFMBaseAddress, cfgWFMUsername, cfgWFMPassword, cfgSQLConnectionString_InFlow);



            string input = "...";

            do
            {
                DConsole.PrintEmptyLines();
                DConsole.Print("ProcessName:");
                input = Console.ReadLine();
                if (input.Length > 0)
                {
                    DConsole.Print(wfm.deleteProcess(ScopeName, input));
                }
                if (input.Length <= 0)
                {
                    DConsole.Print(wfm.deleteCompanyScope(ScopeName));
                }

                DConsole.PrintDone(); Console.WriteLine();
            } while (input.Length > 0);

            start();
        }
Beispiel #3
0
        /*
         * static string cfgWFMBaseAddress = "https://*****:*****@"Data Source=WIN-60UHMF8LEV6\SQLEXPRESS;Initial Catalog=InFlow-DB;Integrated Security=False;User ID=rpadmin;Password=Riegler2014!;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False";
         *
         * const string SBServerFQDN = "WIN-60UHMF8LEV6";
         * const string SBNamespace = "InFlow";
         * const string SBUsername = "******";
         * const string SBPassword = "******";
         *
         * static string ScopeName = "InFlow";
         *
         * static string workflow_TaskHandler_Path = @"C:\strict\InFlow\TaskTier.xaml";
         * static string workflow_MessageHandler_Path = @"C:\strict\InFlow\MessageTier.xaml";
         */

        static void Main(string[] args)
        {
            //  System.Net.ServicePointManager.CertificatePolicy = new MyPolicy();
            System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate { return(true); };
            DConsole.Print("DPMS-Azure Management Console\n", ConsoleColor.Yellow);
            Console.WriteLine();
            start();
        }
Beispiel #4
0
        static void setUpScope()
        {
            InFlowWFM wfm = new InFlowWFM(cfgWFMBaseAddress, cfgWFMUsername, cfgWFMPassword, cfgSQLConnectionString_InFlow);


            Console.WriteLine("Create Company-Scope InFlow");

            DConsole.Print(wfm.addCompanyScope(ScopeName, workflow_TaskHandler_Path) + "\n");

            DConsole.PrintDone(); Console.WriteLine();
        }