Example #1
0
        /// <summary>
        /// Show banner
        /// </summary>
        private async Task ShowBanner()
        {
            Console.WriteLine();
            _log.Information(LogType.Screen, "A simple Windows ACMEv2 client (WACS)");
            _log.Information(LogType.Screen, "Software version {version} ({build}, {bitness})", VersionService.SoftwareVersion, VersionService.BuildType, VersionService.Bitness);
            _log.Information(LogType.Disk | LogType.Event, "Software version {version} ({build}, {bitness}) started", VersionService.SoftwareVersion, VersionService.BuildType, VersionService.Bitness);
            if (_args != null)
            {
                _log.Information("Connecting to {ACME}...", _settings.BaseUri);
                var client = _container.Resolve <AcmeClient>();
                await client.CheckNetwork().ConfigureAwait(false);
            }
            var iis = _container.Resolve <IIISClient>().Version;

            if (iis.Major > 0)
            {
                _log.Information("IIS version {version}", iis);
            }
            else
            {
                _log.Information("IIS not detected");
            }
            if (_userRoleService.IsAdmin)
            {
                _log.Information("Running with administrator credentials");
            }
            else
            {
                _log.Warning("Running without administrator credentials, some options disabled");
            }
            _taskScheduler.ConfirmTaskScheduler();
            _log.Information("Please report issues at {url}", "https://github.com/win-acme/win-acme");
            _log.Verbose("Unicode display test: Chinese/{chinese} Russian/{russian} Arab/{arab}", "語言", "язык", "لغة");
        }
Example #2
0
        /// <summary>
        /// Show banner
        /// </summary>
        private async Task ShowBanner()
        {
            var build = "";

#if DEBUG
            build += "DEBUG";
#else
            build += "RELEASE";
#endif
#if PLUGGABLE
            build += ", PLUGGABLE";
#else
            build += ", TRIMMED";
#endif
            var version = Assembly.GetEntryAssembly().GetName().Version;
            var iis     = _container.Resolve <IIISClient>().Version;
            Console.WriteLine();
            _log.Information(LogType.Screen, "A simple Windows ACMEv2 client (WACS)");
            _log.Information(LogType.Screen, "Software version {version} ({build})", version, build);
            _log.Information(LogType.Disk | LogType.Event, "Software version {version} ({build}) started", version, build);
            if (_args != null)
            {
                _log.Information("ACME server {ACME}", _settings.BaseUri);
                var client = _container.Resolve <AcmeClient>();
                await client.CheckNetwork();
            }
            if (iis.Major > 0)
            {
                _log.Information("IIS version {version}", iis);
            }
            else
            {
                _log.Information("IIS not detected");
            }
            if (_userRoleService.IsAdmin)
            {
                _log.Information("Running with administrator credentials");
            }
            else
            {
                _log.Warning("Running without administrator credentials, some options disabled");
            }
            _taskScheduler.ConfirmTaskScheduler();
            _log.Information("Please report issues at {url}", "https://github.com/win-acme/win-acme");
            _log.Verbose("Test for international support: {chinese} {russian} {arab}", "語言", "язык", "لغة");
        }