Esempio n. 1
0
        private async Task TestAccountAsync()
        {
            AccountDefinition worker = AccountDefinition.GetByPrefix(ConnectedAccount.Prefix);

            IsValidating = true;
            Exception ex = await worker.ValidateInteractiveAsync(ConnectedAccount.Id, ConnectedAccount.StorageConnectionString);

            ValidationError        = ex?.Message;
            ValidationErrorDetails = ex?.ToString();
            IsValidating           = false;
            ValidationPassed       = ex == null;
            CommitCommand?.RaiseCanExecuteChanged();
        }
Esempio n. 2
0
        public ConnectedAccount(string connectionString)
        {
            StorageConnectionString = new StorageConnectionString(connectionString);

            Definition = AccountDefinition.GetByPrefix(StorageConnectionString.Prefix);
        }