Last active
August 29, 2015 14:07
-
-
Save CoditCompany/ae093230e283b2c8b8bb to your computer and use it in GitHub Desktop.
For more information, please see http://www.codit.eu/4662.aspx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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