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 |
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
while (!asleep) | |
{ | |
Console.Write("Blog posts"); | |
} |
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
<system.diagnostics> | |
<sources> | |
<sourcename="Microsoft.ServiceModel.Channels"switchValue="Warning"> | |
<listeners> | |
<addname="eventlog" /> | |
</listeners> | |
</source> | |
<sourcename="Microsoft.Adapters.SAP"switchValue="Warning"> | |
<listeners> | |
<addname="eventlog" /> |
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
<addname="xml" type="System.Diagnostics.XmlWriterTraceListener" | |
traceOutputOptions="LogicalOperationStack" | |
initializeData="C:\log\WCF\AdapterTrace.svclog" /> |
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
inmsg.Context.Write("Operation", "http://schemas.microsoft.com/BizTalk/2003/system-properties","GetCitiesByCountry"); |
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
inmsg.Context.Write("Action", "http://schemas.microsoft.com/BizTalk/2006/01/Adapters/WCF-properties","http://webserviceX.NET/GetCitiesByCountry"); |
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
<system.serviceModel> | |
<behaviors> | |
<endpointBehaviors> | |
<behavior name="sbbehavior"> | |
<transportClientEndpointBehavior> | |
<tokenProvider> | |
<sharedAccessSignature keyName="SendAccessKey" key="xxx=" /> | |
</tokenProvider> | |
</transportClientEndpointBehavior> | |
</behavior> |
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
async void Main() | |
{ | |
var mf = MessagingFactory.CreateFromConnectionString("your cnx string here"); | |
var eventHubClient = mf.CreateEventHubClient("ehname"); | |
Random rnd = new Random(); | |
Parallel.For(1, 11, async (deviceId) => | |
{ | |
for(int cnt = 0; cnt < 50; cnt++) | |
{ | |
Console.WriteLine ("Sending event nr {0} for device {1}", cnt, deviceId); |
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
@concat('>>> _"', triggers().outputs.body.MessageText, '"_ by *', triggers().outputs.body.SenderName, '* _(', triggers().outputs.body.WebUrl, ')_') |
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 void ApplyClientBehavior(ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.ClientRuntime clientRuntime) | |
{ | |
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; | |
} |
OlderNewer