// // Delete the subscription, handler, and filter instances // void _unsubscribe (CIMClient & client) { CIMObjectPath filterPath = _findFilterOrHandlerPath (client, FILTER_CLASSNAME, "TestFilter"); CIMObjectPath handlerPath = _findFilterOrHandlerPath (client, HANDLER_CLASSNAME, "TestHandler"); CIMObjectPath subscriptionPath = _buildSubscriptionPath (filterPath, handlerPath); // // Delete subscription // client.deleteInstance (INTEROPNAMESPACE, subscriptionPath); // // Delete handler // client.deleteInstance (INTEROPNAMESPACE, handlerPath); // // Delete filter // client.deleteInstance (INTEROPNAMESPACE, filterPath); }
void _deleteSubscriptionInstance (CIMClient & client, const String & filterName, const CIMName & handlerClass, const String & handlerName) { CIMObjectPath subscriptionPath = _buildSubscriptionPath (filterName, handlerClass, handlerName); client.deleteInstance (NAMESPACE, subscriptionPath); }