/// <summary> /// Set the IdentityId and IdentityPoolId properties on the request object /// </summary> /// <param name="request"></param> /// <param name="identityPoolId"></param> /// <param name="identityId"></param> public static void SetFields(AmazonCognitoSyncRequest request, string identityPoolId, string identityId) { Type requestType = request.GetType(); CSRequest csRequest; if (requestCache.TryGetValue(requestType, out csRequest)) { csRequest.SetFields(request, identityPoolId, identityId); } }
public void SetFields(AmazonCognitoSyncRequest request, string identityPoolId, string identityId) { if (identityIdProperty != null) { identityIdProperty.SetValue(request, identityId, null); } if (identityPoolIdProperty != null) { identityPoolIdProperty.SetValue(request, identityPoolId, null); } }