Table of Contents

Method DeactivateFlask

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

DeactivateFlask(DeactivateFlaskOperationContract)

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

[OperationContract]
[FaultContract(typeof(DbFaultContract))]
[FaultContract(typeof(BarcodeNotFoundContract))]
[FaultContract(typeof(ValidationFaultContract))]
[SwaggerWcfTag("Containers", false)]
[SwaggerWcfPath(null, null, null, null, null, false, null, Summary = "Update an existing chemical container definition", Description = "Attempts to update an existing chemical container definition, and if successful, raises the corresponding events (untested)")]
[WebInvoke(UriTemplate = "Flasks", Method = "PUT", 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.NotFound, Description = "No flask was found matching the provided barcode.", Type = typeof(JsonErrorMessage))]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.BadRequest, Description = "Fault exception", Type = typeof(JsonErrorMessage))]
void DeactivateFlask(DeactivateFlaskOperationContract flaskOperation)

Parameters

flaskOperation DeactivateFlaskOperationContract

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