First i would like to point out we have tried the suggestions recommended in the POST
How to enable logging usage data in open Dacs API, but with no joy
so any pointers would be appreciated, so code snippet below:
public void ProcessEventStatus(AuthorizationAgentEventStatus
eventStatus)
{
bool isRepermissioning
= eventStatus.StatusCode == AuthorizationAgentEventStatus.StatusCodeEnum.DoRepermission;
if (isRepermissioning)
{
Logger.Info($"Repermissioning requested for user '{Identity}'.");
}
[...]
CheckSubscription([...],
isRepermissioning)
}
private bool CheckSubscription(string service, string
ric, long userHandle, byte[] authorizationLock, bool isRepermissioning)
{
AuthorizationRequest.PerformUsageEnum
usage = isRepermissioning
?
AuthorizationRequest.PerformUsageEnum.OnlyDenialPerformUsageLogging
:
_configuration.DefaultUsageLogging; // This is
AuthorizationRequest.PerformUsageEnum.AlwaysPerformUsageLogging
AuthorizationAgent.AuthorizationCheckResultEnum authorizationCheckResult =
_authorizationAgent.CheckSubscription(
userHandle,
usage,
_authorizationCheckStatus,
new RFA_String(service),
new RFA_String(ric),
authorizationLock.Length,
authorizationLock);
bool result = authorizationCheckResult ==
AuthorizationAgent.AuthorizationCheckResultEnum.AccessAllowed;
return result;
}