UlteriusServer.Ulterius.Start C# (CSharp) Méthode

Start() public méthode

public Start ( bool serviceMode = false ) : void
serviceMode bool
Résultat void
        public void Start(bool serviceMode = false)
        {
            isService = serviceMode;

            if (Process.GetProcessesByName(
                Path.GetFileNameWithoutExtension(Assembly.GetEntryAssembly().Location))
                .Length > 1)
            {
                Process.GetCurrentProcess().Kill();
            }
            if (!Directory.Exists(AppEnvironment.DataPath))
            {
                Directory.CreateDirectory(AppEnvironment.DataPath);
            }
           
            //Fix screensize issues for Screen Share
            if (Tools.RunningPlatform() == Tools.Platform.Windows && Environment.OSVersion.Version.Major >= 6)
            {
                SetProcessDPIAware();
            }
            Setup();
        }

Usage Example

Exemple #1
0
        //Evan will have to support me and my cat once this gets released into the public.

        private static void Main(string[] args)

        {
            var ulterius = new Ulterius();

            ulterius.Start();
        }
All Usage Examples Of UlteriusServer.Ulterius::Start