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
String.format = function (text) { | |
if (arguments.length <= 1) | |
return text; | |
var tokenCount = arguments.length - 2; | |
for (var token = 0; token <= tokenCount; token++) { | |
text = text.replace(new RegExp("\\{" + token + "\\}", "gi"), arguments[token + 1]); | |
} | |
return text; | |
}; |
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
String.format = function (text) { | |
if (arguments.length <= 1) return text; | |
var length = arguments.length - 2, token; | |
for (token = 0; token <= length; token++) { | |
text = text.replace(new RegExp("\\{" + token + "\\}", "gi"), arguments[token + 1]); | |
} | |
return text; | |
}; | |
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 JSON; | |
if (!JSON) { | |
JSON = {}; | |
} | |
(function () { | |
'use strict'; | |
function f(n) { | |
// Format integers to have at least two digits. | |
return n < 10 ? '0' + n : n; | |
} |
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
if (!JSON) { | |
throw new Error("JSON library is required to load PSERVICEBUS. Please reference json2.js"); | |
} | |
if (!jQuery) { | |
throw new Error("jQuery library is required to load PSERVICEBUS"); | |
} | |
String.format = function (text) { | |
'use strict'; |
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
if (!JSON) { | |
throw new Error("JSON library is required to load PSERVICEBUS. Please reference json2.js"); | |
} | |
if (!jQuery) { | |
throw new Error("jQuery library is required to load PSERVICEBUS"); | |
} | |
String.format = function (text) { | |
'use strict'; |
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
if (!JSON) { | |
throw new Error("JSON library is required to load PSERVICEBUS. Please reference json2.js"); | |
} | |
if (!jQuery) { | |
throw new Error("jQuery library is required to load PSERVICEBUS"); | |
} | |
String.format = function (text) { | |
'use strict'; |
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
if (!JSON) { | |
throw new Error("JSON library is required to load PSERVICEBUS. Please reference json2.js"); | |
} | |
if (!jQuery) { | |
throw new Error("jQuery library is required to load PSERVICEBUS"); | |
} | |
String.format = function (text) { | |
'use strict'; |
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 PServiceBus.Core.Interface; | |
using PServiceBus.Core.Runtime.Messages; | |
using PServiceBus.Core.Manager; | |
using PServiceBus.Core.Runtime.Configuration; | |
using System.Threading; | |
using PServiceBus.Core.Runtime; |
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
if (!JSON) { | |
throw new Error("JSON library is required to load PSERVICEBUS. Please reference json2.js"); | |
} | |
if (!jQuery) { | |
throw new Error("jQuery library is required to load PSERVICEBUS"); | |
} | |
String.format = function (text) { | |
'use strict'; |
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 partial class SubscriberExtension { | |
private static readonly MethodInfo MessageReceivedMethod = typeof(Subscriber).GetMethod("OnMessageReceived"); | |
private static readonly ConcurrentDictionary<string, object> _cacheListActions = | |
new ConcurrentDictionary<string, object>(); | |
private static readonly Type _ilistType = typeof(IList<>); | |
private static readonly MethodInfo _toObjects = | |
typeof(SubscriberExtension).GetMethod("ToObjects", BindingFlags.Static | BindingFlags.NonPublic); |