protected override async Task <AuditActor> GetActor()
        {
            // Construct an actor representing the user the service is acting on behalf of
            AuditActor onBehalfOf = null;

            if (_onBehalfOfThunk != null)
            {
                onBehalfOf = await _onBehalfOfThunk();
            }
            return(await AuditActor.GetCurrentMachineActor(onBehalfOf));
        }
Exemplo n.º 2
0
 protected virtual Task <AuditActor> GetActor()
 {
     return(AuditActor.GetCurrentMachineActor());
 }