ESRI.ArcGIS.Client.Toolkit.SignInDialog.GenerateToken C# (CSharp) Метод

GenerateToken() приватный Метод

private GenerateToken ( ) : void
Результат void
		private void GenerateToken()
		{
			if (!IsReady)
				return;

			IsBusy = true;
			ErrorMessage = null;

			long requestID = ++_requestID;
			IdentityManager.Current.GenerateCredentialAsync(Url, UserName, Password, (crd, exc) => TokenGenerated(crd, exc, requestID), GenerateTokenOptions);
		}

Usage Example

Пример #1
0
            public void Execute(object parameter)
            {
#if SILVERLIGHT
                _signInDialog.GenerateToken();
#else
                if (_signInDialog.AuthenticationType == IdentityManager.AuthenticationType.Token)
                {
                    _signInDialog.GenerateToken();
                }
                else
                {
                    _signInDialog.GenerateNetworkCredential();
                }
#endif
            }