/// <summary> /// Determines the principal stored with the queued message /// </summary> protected async Task <IPrincipal> ResolvePrincipal(IMessageHeaders headers, string senderPrincipal) { return(await SecurityTokenService.NullSafeValidate(headers.SecurityToken)); }