﻿<?xml version="1.0" encoding="utf-8" ?>
<!--
  <copyright file="Definition.xml" company="Microsoft">
    Copyright (C) Microsoft. All rights reserved.
  </copyright>
-->
<Feature xmlns="http://schemas.microsoft.com/WindowsServerSolutions/2010/03/Health"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://schemas.microsoft.com/WindowsServerSolutions/2010/03/Health ..\..\Engine\FeatureSchema.xsd"
         Name="WebApiHealthFeature" Title="Wssg.WebApi.Health!Microsoft.WindowsServerSolutions.WebApi.Health.Resources#IisConfigurationTitle">
  <Filter>
    <Binary>
      <Assembly>HealthActions</Assembly>
      <Class>Microsoft.WindowsServerSolutions.NetworkHealth.Actions.NetworkServerFilter</Class>
    </Binary>
  </Filter>
  <HealthDefinitions>
    <HealthDefinition Name="WebApiHealth" Title="Wssg.WebApi.Health!Microsoft.WindowsServerSolutions.WebApi.Health.Resources#IisConfigurationTitle">
      <Condition>
        <Binary>
          <Assembly>Wssg.WebApi.Health</Assembly>
          <Class>Microsoft.WindowsServerSolutions.WebApi.Health.WebApiHealthCheck</Class>
        </Binary>
      </Condition>
      <HealthStatusChange>
        <Status>Critical</Status>
      </HealthStatusChange>
      <Troubleshoot>
        <Steps>
          Wssg.WebApi.Health!Microsoft.WindowsServerSolutions.WebApi.Health.Resources#IisConfigurationResolution
        </Steps>
      </Troubleshoot>
      <RepairAction>
        <Binary>
          <Assembly>Wssg.WebApi.Health</Assembly>
          <Class>Microsoft.WindowsServerSolutions.WebApi.Health.WebApiHealthRecovery</Class>
        </Binary>
      </RepairAction>
    </HealthDefinition>
  </HealthDefinitions>
</Feature>