Interface IAvailableCheckout
Provides details of an Available Checkout that one can potentially Acquire
.
Namespace: Sp.Agent.Distributor
Assembly: Sp.Agent.Distributor.dll
Properties
AvailableUntil
The (local) date and time until which one is eligible to Acquire this Available Checkout.
Declaration
DateTime AvailableUntil { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Id
The internal identifier of this Available Checkout.
Declaration
string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Acquire(DateTime)
Attempts to Acquire this Checkout.
Upon success, the client will remain in Disconnected mode until the Checkout is Relinquish().
NB While Checked out, Distributed Features not within this IAvailableCheckout will be unavailable (i.e., normal Connected leasing behavior will be suspended and the available features will be confined to those on locally available licenses plus the Checked out set).
Declaration
void Acquire(DateTime until)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | until | The date and time until which one wishes to hold the Checkout. |
Exceptions
Type | Condition |
---|---|
NoLongerAvailableException | Thrown if this Checkout is no longer available at the present time. |
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 |
CheckoutStorageAccessException | Thrown if there is a issue reading the checkout storage. See the |
DistributorIntegrityException | Thrown if there is an integrity issue on the server. |
System.InvalidOperationException | Thrown if you have already Acquire(DateTime) another IAvailableCheckout. You will need to Relinquish() first to avoid this. |