Interface ICheckoutContext
Provides facilities for getting information about AvailableNow() and/or the TryGetCurrent(out ICheckout) Checkouts.
Namespace: Sp.Agent.Distributor
Assembly: Sp.Agent.Distributor.dll
Methods
AvailableNow()
Provides a list of IAvailableCheckout that the current client is eligible to Acquire(DateTime) at the present time.
Declaration
IAvailableCheckout[] AvailableNow()
Returns
Type | Description |
---|---|
IAvailableCheckout[] | A list of Available Checkouts that one can potentially Acquire(DateTime). |
Exceptions
Type | Condition |
---|---|
NoDistributorException | Thrown if there is no Distributor configured or discoverable available at the present time. |
DistributorRequestException | Thrown if there is a connectivity or related issue contacting the service. See the |
DistributorIntegrityException | Thrown if there is an integrity issue on the server. |
TryGetCurrent(out ICheckout)
Tries to get details of the currently held Checkout (if any).
Declaration
bool TryGetCurrent(out ICheckout checkout)
Parameters
Type | Name | Description |
---|---|---|
ICheckout | checkout | ICheckout instance (if one is held at the present time) |
Returns
Type | Description |
---|---|
System.Boolean |
|
Exceptions
Type | Condition |
---|---|
CheckoutStorageAccessException | Thrown if there is a issue reading the checkout storage. See the |