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
            }