This file contains hidden or 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 static class StaticProps | |
| { | |
| private static ConcurrentDictionary<string, List<BtsContextProperty>> propDictionary = new ConcurrentDictionary<string, List<BtsContextProperty>>(); | |
| public static void Add(string correlationID, BtsContextProperty property) | |
| { | |
| if (!propDictionary.ContainsKey(correlationID)) | |
| { | |
| propDictionary.AddOrUpdate(correlationID, new List<BtsContextProperty>(), (key, existingVal) => | |
| { |
This file contains hidden or 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
| 'use strict' | |
| var util = require('util'); | |
| var Protocol = require('azure-iot-device-http').Http; | |
| var Client = require('azure-iot-device').Client; | |
| var ConnectionString = require('azure-iot-device').ConnectionString; | |
| var Message = require('azure-iot-device').Message; | |
| var deviceId = 'test-0d544dd0-3eaa-11e6-8205-6d1f96ea4efc'; | |
| var deviceKey = 'xxx'; | |
| var data = { | |
| "timestamp": new Date().toUTCString(), |
This file contains hidden or 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
| var dataSimulator = require('./index.js'), | |
| util = require('util'), | |
| should = require('should'); | |
| function getContextObject() { | |
| return { | |
| res: null, | |
| log: function() { | |
| console.log(util.format(arguments)); | |
| }, | |
| done: null |
This file contains hidden or 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 static int GetNumberOfSendPortsInSendPortGroup(string spgName) | |
| { | |
| intnumberOfSendPorts = 0; | |
| BtsCatalogExplorer root = newBtsCatalogExplorer(); | |
| root.ConnectionString = "Integrated Security=SSPI;database=BizTalkMgmtDb;server=."; | |
| foreach (SendPortGroup sendPortGroup inroot.SendPortGroups) | |
| { | |
| if (sendPortGroup.Name == spgName) |
This file contains hidden or 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 bool LogicalExistence(bool val) | |
| { | |
| return val; | |
| } |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.ServiceModel.Description; | |
| using System.ServiceModel.Security; | |
| namespace Axon.Biztalk.WCF.Extensions | |
| { | |
| public class ImpersonateNtlmCredentialsBehaviour : IEndpointBehavior |
This file contains hidden or 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
| function GetBizTalkGroupSettinginfo | |
| { | |
| $script:BizTalkGroupMgmtDbServerName = get-wmiobjectMSBTS_GroupSetting -namespaceroot\MicrosoftBizTalkServer | select-object-expandMgmtDbServerName | |
| $script:BizTalkGroupMgmtDbName = get-wmiobjectMSBTS_GroupSetting -namespaceroot\MicrosoftBizTalkServer | select-object-expandMgmtDbName | |
| $script:BamDBName = get-wmiobjectMSBTS_GroupSetting -namespaceroot\MicrosoftBizTalkServer | select-object-expandBamDBName | |
| $script:BamDBServerName = get-wmiobjectMSBTS_GroupSetting -namespaceroot\MicrosoftBizTalkServer | select-object-expandBamDBServerName | |
| $script:BizTalkAdministratorGroup = get-wmiobjectMSBTS_GroupSetting -namespaceroot\MicrosoftBizTalkServer | select-object-expandBizTalkAdministratorGroup | |
| $script:BizTalkOperatorGroup = get-wmiobjectMSBTS_GroupSetting -namespaceroot\MicrosoftBizTalkServer | select-object-expandBizTalkOperatorGroup | |
| $script:ConfigurationCacheRefreshInterval = get-wmiobjectMSBTS_GroupSetting -namespaceroot\MicrosoftBizTalkServer |
This file contains hidden or 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
| $servers= ("BizTalk2010n1", "BizTalk2010n2") | |
| #This function checks the status of the host instances on a BizTalk server ($Server). | |
| function checkhostinstancestatusstarted ($server) | |
| { | |
| #gets all host instances on the server. Isolated (hosttype = 2) or disabled hosts are excluded . | |
| $hostinstances= get-wmiobjectMSBTS_HostInstance -namespace'root\MicrosoftBizTalkServer' | where {$_.runningserver -match $server -AND $_.hosttype -ne "2" -and $_.IsDisabled -ne "True"} | |
| write-host"Checking the state of all host instances on the server $server`:" | |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.ServiceModel.Configuration; | |
| using System.Configuration; | |
| namespace Axon.Biztalk.WCF.Extensions | |
| { | |
| public class ImpersonateNtlmCredentialsBehaviourElement : BehaviorExtensionElement |
This file contains hidden or 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
| { | |
| "OrderBatch": { | |
| "OrderBatchId": "BATCH001", | |
| "OrderDate": "2017-02-03", | |
| "Customer": "Codit", | |
| "Orders": [ | |
| { | |
| "OrderId": "1", | |
| "Product": "Consultancy", | |
| "Quantity": "16", |