Table of Contents

Method Refresh

Namespace
Everest.Service.ChemTypes
Assembly
Everest.Service.dll

Refresh(string)

Refresh an existing chemical type definition

[OperationContract]
[FaultContract(typeof(DbFaultContract))]
[FaultContract(typeof(ChemTypeNotFoundContract))]
[FaultContract(typeof(ValidationFaultContract))]
[SwaggerWcfTag("Chemicals", false)]
[SwaggerWcfPath(null, null, null, null, null, false, null, Summary = "Refresh a chemical definition", Description = "Forces a refresh on the definition of the ChemTypes and, if successful, raises the corresponding events to update all affected entities (e.g. substances, mixtures)")]
[WebInvoke(UriTemplate = "Refresh", 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.NotFound, Description = "No chemical was found matching the provided 'ID'", Type = typeof(JsonErrorMessage))]
[SwaggerWcfResponse(StatusCode = HttpStatusCode.BadRequest, Description = "Fault exception", Type = typeof(JsonErrorMessage))]
void Refresh(string code)

Parameters

code string

The code associated with the target chemical definition