Table of Contents

Method RegisterFlask

Namespace
Everest.Service.Containers
Assembly
Everest.Service.dll

RegisterFlask(RegisterFlaskOperationContract)

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

[OperationContract]
[FaultContract(typeof(DbFaultContract))]
[FaultContract(typeof(ValidationFaultContract))]
[SwaggerWcfTag("Containers", false)]
[SwaggerWcfPath(null, null, null, null, null, false, null, Summary = "Register a new chemical container definition", Description = "Attempts to insert a new chemical container definition to the RegisteredContainers store and, if successful, raises the corresponding events (untested)")]
[WebInvoke(UriTemplate = "Flasks", Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.OK, Description = "Success")]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.InternalServerError, Description = "An unexpected error occurred while processing the request.", Type = typeof(JsonErrorMessage))]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.BadRequest, Description = "Fault exception", Type = typeof(JsonErrorMessage))]
void RegisterFlask(RegisterFlaskOperationContract flaskOperation)

Parameters

flaskOperation RegisterFlaskOperationContract

Contains the flask instance to register (using the user-provided credentials)