Database Reference
In-Depth Information
return CheckResult.Pass;
}
}
}
Passing a failure for a custom check in ServicePulse:
Passing a pass for a custom check in ServicePulse:
There are many uses of custom checks in ServicePulse to give operations and the business
the internal operations of the services, endpoints, and messages in NServiceBus.
We called the MyCustomCheck class when we passed messages to the MyPublisher
queue using MyCustomCheck myCheck = new MyCustomCheck(); .
We can then put conditional statements to check the condition and report whether the
check has failed or passed. We will show how we can pass a message to ServicePulse to
report that it has passed. We can report a failure by replacing the report that has passed
with the one that failed, such as ReportFailed("Testing") . It will then log the
failures in ServicePulse.
ServicePulse provides a visual interface to show the history of the heartbeats, failures, and
custom checks when it is running, and we can configure which available endpoints to
check.
Search WWH ::




Custom Search