예제 #1
0
#pragma warning disable AvoidAsyncVoid
        private async void OnDispatcherTimerTick(object sender, EventArgs e)
#pragma warning restore AvoidAsyncVoid
        {
            var validationResult = await TaskHelper.Run(() => _networkLicenseService.ValidateLicense(), true);

            UpdateValidationResult(validationResult);
        }
        private async Task OnValidateLicenseOnLocalNetworkExecuteAsync()
        {
            NetworkValidationResult validationResult = null;

            validationResult = _networkLicenseService.ValidateLicense();

            await _messageService.ShowAsync(string.Format("License is {0}valid, using '{1}' of '{2}' licenses", validationResult.IsValid ? string.Empty : "NOT ", validationResult.CurrentUsers.Count, validationResult.MaximumConcurrentUsers));
        }