Skip to content

Instantly share code, notes, and snippets.

@CoditCompany
Last active August 29, 2015 14:07
Show Gist options
  • Save CoditCompany/ae093230e283b2c8b8bb to your computer and use it in GitHub Desktop.
Save CoditCompany/ae093230e283b2c8b8bb to your computer and use it in GitHub Desktop.
For more information, please see http://www.codit.eu/4662.aspx
public Microsoft.BizTalk.Message.Interop.IBaseMessage Execute(IPipelineContext pContext, Microsoft.BizTalk.Message.Interop.IBaseMessage pInMsg)
{
object backupTransportVal = pInMsg.Context.Read("BackupEndpointInfo", "http://schemas.microsoft.com/BizTalk/2003/system-properties");
if (backupTransportVal == null)
{
//Not present => no backupTransport configured => use default
//Perform Actions
}
else
{
string sBackupTransportVal = backupTransportVal.ToString();
if (!String.IsNullOrEmpty(sBackupTransportVal))
{
//Present, not empty => BackupTransport is configured, but not executing the backupTransport
//Perform Actions
}
else
{
//Present, but empty => BackupTransport is configured and is being executed
//Perform Actions
}
}
//Continue with additional actions
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment