Constructor AccessAuthorization
- Namespace
- MailFathom.Application.Access
- Assembly
- MailFathom.Application.dll
AccessAuthorization(IAuthorizedPrincipalSource)
Initializes the authorization over the principal of the unit of work in hand, placing no target.
public AccessAuthorization(IAuthorizedPrincipalSource principals)
Parameters
principalsIAuthorizedPrincipalSourceReports whoever the work is running for.
Remarks
Every target is then Unplaced, so an administrative permission reaches a named target only where it is held over the whole deployment. That is the answer for work that reaches no administrative target at all, and the narrowest one for work that does.
Exceptions
- ArgumentNullException
Thrown when
principalsis null.
AccessAuthorization(IAuthorizedPrincipalSource, IAdministrativeTargets)
Initializes the authorization over the principal of the unit of work in hand, placing what an operation names.
public AccessAuthorization(IAuthorizedPrincipalSource principals, IAdministrativeTargets targets)
Parameters
principalsIAuthorizedPrincipalSourceReports whoever the work is running for.
targetsIAdministrativeTargetsPlaces a named user or mail account in the deployment, for an operation that names one.
Exceptions
- ArgumentNullException
Thrown when
principalsortargetsis null.