Share via


The DCS Instrumentation Facility

The DCS WMI provider is implemented by the Microsoft.ConnectedIndustry.ProcessExecution.Common.Instrumentation InstrumentationProvider class in the Microsoft.ConnectedIndustry.ProcessExecution.Common assembly.

The DCS WMI provider is disabled by default. To enable a DCS service to generate WMI events, add the key wmiEnabled with a value of true to the <appSettings> section of the configuration file for the service. The following code is an example of this section of a configuration file for a service.

You can use the static methods of the InstrumentationProvider class to raise WMI events in your own code. For more information, see Raising DCS WMI Events.

<?xml version="1.0" encoding="utf=8"?>
<configuration>
    ...
    <appSettings>
        <add key "wmiEnabled" value="true"/>
        ...
    </appSettings>
    ...
</configuration>

See Also

WMI Events for DCS

Raising DCS WMI Events