iikoFront Api V6 Code Reference
iikoFront Api V6 Code Reference
Resto.Front.Api
ILicensingService Interface
ILicensingService Methods
AcquireSlot Method

# ILicensingService AcquireSlot Method

Acquires one slot from the specified module for client with specified identifier. This method will temporarily bind slot to the client, repeated acquisitions from the same module for the same client will return the same slot.

Namespace: Resto.Front.Api
Assembly: Resto.Front.Api.V6 (in Resto.Front.Api.V6.dll) Version: 1ca4876affdd3bc5359a98b321fc115a647d2251
Syntax
C#
Copy

    IDisposable AcquireSlot(
    	int moduleId,
    	Guid clientId
    )

#### Parameters

moduleId
  Type: System
  Int32
  The licensable module identifier.
clientId
  Type: System
  Guid
  The calling client identifier.

#### Return Value

Type: IDisposable
A token for single licensing unit (plugin instance or external connection), disposing it releases slot and unbinds the slot from the client.
Exceptions

Exception | Condition
--- | ---
InsufficientLicenseException | License slot could not be acquired.

See Also

#### Reference

ILicensingService Interface
Resto.Front.Api Namespace