/// <summary> /// Listens for a list of attribute values previously requested by RequestAttributeValuesAsync. /// </summary> private void ListenAttributeValuesResponse() { MLResult.Code resultCode = MLIdentity.NativeBindings.ListenAttributeValuesResponse(this, ref this.attributes); if (MLResult.IsOK(resultCode)) { this.request.RequestState = Request.State.DONE; } else if (!MLResult.IsPending(resultCode)) { MLPluginLog.ErrorFormat("MLIdentity.Profile.ListenAttributeValuesResponse failed to retrieve attribute values. Reason: {0}", resultCode); this.request.RequestState = Request.State.DONE; } this.request.ResultCode = resultCode; }
/// <summary> /// Listens for client credentials previously requested by RequestClientCredentialsAsync. /// </summary> private void ListenClientCredentialsResponse() { MLResult.Code resultCode = MLTokenAgent.NativeBindings.ListenClientCredentialsResponse(this, ref this.credentials, ref this.tokens); if (MLResult.IsOK(resultCode)) { this.request.RequestState = Request.State.DONE; } else if (!MLResult.IsPending(resultCode)) { MLPluginLog.ErrorFormat("MLIdentity.clientCredentials.ListenAttributeNamesResponse failed to retrieve attribute names. Reason: {0}", resultCode); this.request.RequestState = Request.State.DONE; } this.request.ResultCode = resultCode; }