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)); }
protected virtual Task <AuditActor> GetActor() { return(AuditActor.GetCurrentMachineActor()); }