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.Text.RegularExpressions; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using System.IO; | |
using PServiceBus.Core.Runtime; | |
using PServiceBus.Core.Logger; | |
using ServiceStack.Redis; |
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
private static void SetupExitEvent() { | |
#if WINDOWS_PHONE | |
Application.Current.Exit += (s, e) => Disconnect(); | |
var phone = Application.Current.RootVisual as Microsoft.Phone.Controls.PhoneApplicationFrame; | |
if (phone != null) phone.BackKeyPress += (s, arg) => Disconnect(); | |
#else | |
if (Application.Current.IsRunningOutOfBrowser) | |
Application.Current.Exit += (s, e) => Disconnect(); | |
else { | |
HtmlPage.Window.Eval(String.Format(ScriptConstants.InitDurableFlag, Durable.ToString().ToLower())); |
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.Windows; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
#if !WINDOWS_PHONE | |
using System.Windows.Browser; | |
#endif | |
namespace |
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.Windows; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Threading; | |
#if !WINDOWS_PHONE | |
using System.Windows.Browser; | |
#endif |
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
filter = filter ?? string.Empty; | |
interval = interval ?? TimeSpan.FromMilliseconds(5); | |
var type = typeof(T); | |
var topicName = type.Name; | |
var headerProperty = type.GetProperties().FirstOrDefault(x => x.GetCustomAttributes(_topicHeaderAttributeType, false).Any()); | |
var needHeader = headerProperty != null; | |
var reset = new ManualResetEvent(false); | |
var bw = new BackgroundWorker(); | |
bw.DoWork += (s, e) => { |
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 kcc = Type.GetType(ParseString("x94-x--x") + ParseString("j8-1294x@")); | |
var kxc = Type.GetType(ParseString("x94-x--x") + ParseString("551xxcv")); | |
var kscs = kxc.GetMethod(ParseString("x121ds"), | |
new []{kcc, kcc}); | |
var krcxr = kxc.GetMethod(ParseString("cxvxc4"), | |
new[] { kcc, kcc }); | |
var xrvxc = typeof(Program).GetMethod(ParseString("Lj3465")); | |
var xccc = kxc.GetMethod(ParseString("7#$524"), | |
BindingFlags.Static | BindingFlags.Public, | |
null, new[] { kxc, kxc }, 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
private static Delegate Invoke(Type type, string name, Action<ILGenerator> action) { | |
var stack = new StackTrace(); | |
var caller = stack.GetFrame(1).GetMethod().Name; | |
var key = String.Concat(caller, name); | |
return _delegates.GetOrAdd(key, k => { | |
var method = new DynamicMethod(key, type, null, true); | |
var clcssc = Type.GetType(ParseString("x94-x--x") + ParseString("jxk932")); | |
var cclmxcm = Type.GetType(ParseString("x94-x--x") + ParseString("j8-1294x@")); | |
var lkckolk = Type.GetType(ParseString("x94-x--x") + ParseString("551xxcv")); | |
var fxcvs = AppDomain.CurrentDomain.GetAssemblies().Where(x => |
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.Runtime.InteropServices; | |
using System.Security.Cryptography; | |
using System.IO; | |
using System.Reflection.Emit; | |
using System.Reflection; | |
using System.Threading; |
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.Manager; | |
using PServiceBus.Core.Provider; | |
using PServiceBus.Core.Runtime; | |
using PServiceBus.Core.Logger; | |
using PServiceBus.Core.Runtime.Configuration; |
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.Text.RegularExpressions; | |
using System.Collections.Concurrent; | |
using System.Linq.Expressions; | |
using System.Collections; | |
namespace ExpressionParser { |