BizTalkSendHandler Class | MSBuild Extension Pack Help 4.0.12.0 |
Valid TaskActions are:
CheckExists (Required: HostName, AdapterName Optional: MachineName, DatabaseServer, DatabaseOutput: Exists)
Create (Required: HostName, AdapterName Optional: MachineName, Default, DatabaseServer, Database, CustomCfg, Force)
Delete (Required: HostName, AdapterName Optional: MachineName, DatabaseServer, Database)
Get (Optional: HostName, AdapterName, MachineName, DatabaseServer, DatabaseOutput: SendHandlers)
Remote Execution Support: Yes
Inheritance Hierarchy
MSBuild.ExtensionPackBaseTask
MSBuild.ExtensionPack.BizTalkBizTalkSendHandler
Namespace: MSBuild.ExtensionPack.BizTalk
Assembly: MSBuild.ExtensionPack.BizTalk (in MSBuild.ExtensionPack.BizTalk.dll) Version: 4.0.0.0
The BizTalkSendHandler type exposes the following members.
Constructors
Name | Description | |
---|---|---|
BizTalkSendHandler |
Properties
Name | Description | |
---|---|---|
AdapterName |
Sets the AdapterName
| |
CustomCfg |
Sets the CustomCfg for the SendHandler. See Configuration Properties for Integrated BizTalk Adapters | |
Database |
Sets the Management Database to connect to. Default is BizTalkMgmtDb
| |
DatabaseServer |
Sets the DatabaseServer to connect to. Default is MachineName
| |
Default |
Sets the SendHanlder as Default. Default is false.
| |
Exists |
Gets whether the Application exists
| |
Force |
Set to true to delete an existing Send Handler when Create is called.
| |
HostName |
Sets the Host Name. For TaskAction="Get", a regular expression may be provided
| |
SendHandlers |
Gets the list of Send Handlers. Identity is HostName. Metadata includes AdapterName, MgmtDbNameOverride, MgmtDbServerOverride, CustomCfg, Description, Caption.
|
Examples
<Project ToolsVersion="4.0" DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <TPath>$(MSBuildProjectDirectory)\..\MSBuild.ExtensionPack.tasks</TPath> <TPath Condition="Exists('$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks')">$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks</TPath> </PropertyGroup> <Import Project="$(TPath)"/> <Target Name="Default"> <!-- Create a SendHandler (note force is true)--> <MSBuild.ExtensionPack.BizTalk.BizTalkSendHandler TaskAction="Create" HostName="MSBEPTESTHOST" AdapterName="MQSeries" Force="true"/> <!-- Check a SendHandler exists (it should) --> <MSBuild.ExtensionPack.BizTalk.BizTalkSendHandler TaskAction="CheckExists" HostName="MSBEPTESTHOST" AdapterName="MQSeries"> <Output TaskParameter="Exists" PropertyName="DoesExist"/> </MSBuild.ExtensionPack.BizTalk.BizTalkSendHandler> <Message Text="BizTalkSendHandler Exists: $(DoesExist) "/> <!-- Get all Send Handlers --> <MSBuild.ExtensionPack.BizTalk.BizTalkSendHandler TaskAction="Get" HostName="Biz"> <Output TaskParameter="SendHandlers" ItemName="SH"/> </MSBuild.ExtensionPack.BizTalk.BizTalkSendHandler> <Message Text="%(SH.Identity) - %(SH.AdapterName) - %(SH.CustomCfg)"/> <!-- Delete a SendHandler --> <MSBuild.ExtensionPack.BizTalk.BizTalkSendHandler TaskAction="Delete" HostName="MSBEPTESTHOST" AdapterName="MQSeries"/> <!-- Check a SendHandler exists (it shouldn't) --> <MSBuild.ExtensionPack.BizTalk.BizTalkSendHandler TaskAction="CheckExists" HostName="MSBEPTESTHOST" AdapterName="MQSeries"> <Output TaskParameter="Exists" PropertyName="DoesExist"/> </MSBuild.ExtensionPack.BizTalk.BizTalkSendHandler> <Message Text="BizTalkSendHandler Exists: $(DoesExist) "/> </Target> </Project>
See Also