var addServiceMessage = new AddServiceMessage
{
DataMinerID = service.ServiceInfo.DataMinerID,
HostingDataMinerID = service.ServiceInfo.HostingAgentID,
Service = service.ServiceInfo,
};
_engine.SendSLNetSingleResponseMessage(addServiceMessage);
above is the code used for updating the service if there is any change is there inside the elements. this is running in scheduler, so everytime this code runs the cube log shows the service is edited eventhough there is no edit happening.
is there any other way we can update the service?
Hi Baranisudha,
You can get the current service using _engine.FindService, then you can compare if the service.ServiceInfo has differences, if not don't send the message.
No, that message is intended to add or update services, no problem in using it.
can we avoid the log in information event in cube? because it is not an actual service edit, if we add or remove the element in service getting "service is edited" message in information events is fine, but im just refreshing a table of the element. In this case i dont want the log in information event.
If the message is sent no.
By refreshing a table you mean including a new table to the service?
Yes, that is been worked on. But is there any alternative for AddServiceMessage? because it is a updated activity. Do we any class for update?