Test İletisi
Microsoft.MSMQ.6.3.MonitorType.TestMessage (UnitMonitorType)
Element properties:
Member Modules:
Overrideable Parameters:
Source Code:
<UnitMonitorType ID="Microsoft.MSMQ.6.3.MonitorType.TestMessage" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="MessageReceived" NoDetection="false"/>
<MonitorTypeState ID="MessageFailed" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<xsd:element minOccurs="1" name="IntervalSeconds" type="xsd:integer"/>
<xsd:element minOccurs="1" name="ComputerName" type="xsd:string"/>
<xsd:element minOccurs="1" name="TargetQueue" type="xsd:string"/>
<xsd:element minOccurs="1" name="AdminQueue" type="xsd:string"/>
<xsd:element minOccurs="1" name="CreateQueues" type="xsd:boolean"/>
<xsd:element minOccurs="1" name="AppSpecific" type="xsd:integer"/>
<xsd:element minOccurs="1" name="MaxWaitTime" type="xsd:integer"/>
<xsd:element minOccurs="1" name="MessageBody" type="xsd:string"/>
<xsd:element minOccurs="1" name="RemoveMessage" type="xsd:boolean"/>
<xsd:element minOccurs="1" name="CleanupQueue" type="xsd:boolean"/>
<xsd:element minOccurs="1" name="CleanupAdminQueue" type="xsd:boolean"/>
<xsd:element minOccurs="1" name="LogDetail" type="xsd:boolean"/>
<xsd:element minOccurs="1" name="TimeoutSeconds" type="xsd:integer"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
<OverrideableParameter ID="TargetQueue" Selector="$Config/TargetQueue$" ParameterType="string"/>
<OverrideableParameter ID="AdminQueue" Selector="$Config/AdminQueue$" ParameterType="string"/>
<OverrideableParameter ID="CreateQueues" Selector="$Config/CreateQueues$" ParameterType="bool"/>
<OverrideableParameter ID="AppSpecific" Selector="$Config/AppSpecific$" ParameterType="int"/>
<OverrideableParameter ID="MessageBody" Selector="$Config/MessageBody$" ParameterType="string"/>
<OverrideableParameter ID="RemoveMessage" Selector="$Config/RemoveMessage$" ParameterType="bool"/>
<OverrideableParameter ID="CleanupQueue" Selector="$Config/CleanupQueue$" ParameterType="bool"/>
<OverrideableParameter ID="CleanupAdminQueue" Selector="$Config/CleanupAdminQueue$" ParameterType="bool"/>
<OverrideableParameter ID="LogDetail" Selector="$Config/LogDetail$" ParameterType="bool"/>
<OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DS" TypeID="Microsoft.MSMQ.6.3.DataSource.Queue.SendTestMessage">
<IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
<ComputerName>$Config/ComputerName$</ComputerName>
<TargetQueue>$Config/TargetQueue$</TargetQueue>
<AdminQueue>$Config/AdminQueue$</AdminQueue>
<CreateQueues>$Config/CreateQueues$</CreateQueues>
<AppSpecific>$Config/AppSpecific$</AppSpecific>
<MaxWaitTime>$Config/MaxWaitTime$</MaxWaitTime>
<MessageBody>T$Config/MessageBody$</MessageBody>
<RemoveMessage>$Config/RemoveMessage$</RemoveMessage>
<CleanupQueue>$Config/CleanupQueue$</CleanupQueue>
<CleanupAdminQueue>$Config/CleanupAdminQueue$</CleanupAdminQueue>
<LogDetail>$Config/LogDetail$</LogDetail>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
</DataSource>
<ConditionDetection ID="FilterSuccess" TypeID="System!System.ExpressionFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Boolean">Property[@Name='ScriptCompleted']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Boolean">true</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='Result']</XPathQuery>
</ValueExpression>
<Operator>LessEqual</Operator>
<ValueExpression>
<Value Type="Integer">4</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<ConditionDetection ID="FilterFail" TypeID="System!System.ExpressionFilter">
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Boolean">Property[@Name='ScriptCompleted']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Boolean">false</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Integer">Property[@Name='Result']</XPathQuery>
</ValueExpression>
<Operator>Greater</Operator>
<ValueExpression>
<Value Type="Integer">4</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="MessageReceived">
<Node ID="FilterSuccess">
<Node ID="DS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="MessageFailed">
<Node ID="FilterFail">
<Node ID="DS"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>