Amazon.CognitoSync.SyncManager.Internal.DatasetUtils.GetIdentityId C# (CSharp) 메소드

GetIdentityId() 공개 정적인 메소드

A helper function to get the identity id of the dataset from credentials provider. If the identity id is null, UNKNOWN_IDENTITY_ID will be returned.
public static GetIdentityId ( CognitoAWSCredentials credentials ) : string
credentials Amazon.CognitoIdentity.CognitoAWSCredentials The Cognito Credentials.
리턴 string
        public static string GetIdentityId(CognitoAWSCredentials credentials)
        {
            return string.IsNullOrEmpty(credentials.GetCachedIdentityId())
                ? UNKNOWN_IDENTITY_ID
                    : credentials.GetCachedIdentityId();
        }