Table of Contents

Class EverestContainersService

Namespace
Everest.Service.Containers
Assembly
Everest.Service.dll
[SwaggerWcf("/Everest/Containers")]
[SwaggerWcfServiceInfo("Storage containers service", "v1")]
public class EverestContainersService : EverestServiceBase, IEverestContainersService
Inheritance
EverestContainersService
Implements
Inherited Members

Constructors

EverestContainersService()
EverestContainersService(IBottleOperationsApplication, IFlaskOperationsApplication, IMapper)
EverestContainersService(IBottleOperationsApplication, IFlaskOperationsApplication, ILog, IMapper)

Fields

BottlesApplication
FlasksApplication

Methods

DeactivateFlask(DeactivateFlaskOperationContract)

In case where a flask is broken, lost or incorrectly registered, this method can be used to remove it (marked as inactive)

GetBottle(int)

Returns the bottle kind associated with the given id

GetBottleData<TContract>(int)
GetBottles(bool)

Returns the list of registered bottle kinds

GetBottlesData<TContract>(bool)
GetDetailedBottleStatus(int)

Returns the bottle kind description and stock information associated with the given id

GetDetailedStatusBottles(bool)

Returns the full bottle kind description and stock information for all bottles (optionally filtering out those that are out of stock)

GetFlasks(bool)

Returns the list of currently registered flasks

GetFlasksByCode(string)

Returns the flask corresponding to the given code if one is found or BarcodeNotFoundContract is thrown otherwise

Refresh(int)

Refresh an existing bottle type definition

RegisterFlask(RegisterFlaskOperationContract)

Registers a new flask for use, starting from the given start date (could be in the future)

ValidateCode(string)
ValidateFlaskOperation(VolumetricContainerInstanceContract)