예제 #1
0
        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));
        }
예제 #2
0
 protected virtual Task <AuditActor> GetActor()
 {
     return(AuditActor.GetCurrentMachineActor());
 }