private void SendServiceStateChangedResponse(ServiceState currentState) { ServiceResponse response = new ServiceResponse("SERVICESTATECHANGED"); response.Attachments.Add(new ObjectState<ServiceState>(Name, currentState)); SendResponse(response); }