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 class FreeConsumer | |
{ | |
public event EventHandler<MyPublishedEvent> MyPublish; | |
public void CommandHandler(MyCommand command) | |
{ | |
// process the command | |
// the event handler will be bound by MT to publish the event handler message type | |
MyPublish(this, new MyPublishedEvent(...)); |
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
IServiceBus bus = ServiceBusFactory.New(c => | |
{ | |
c.ReceiveFrom("rabbitmq://logicalHost/my_queue"); | |
c.UseRabbitMq(r => | |
{ | |
r.ConfigureHost("rabbitmq://logicalhost/", h => | |
{ | |
h.SetUsername("testUser"); | |
h.SetPassword("test"); |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Swap Fn-Keys and Functional Keys in Virtual Machine</name> | |
<appendix>For MacBook Pro</appendix> | |
<identifier>private.phatboyg_swap_fkeys_vm</identifier> | |
<not>VIRTUALMACHINE, REMOTEDESKTOPCONNECTION</not> | |
<autogen>--KeyToConsumer-- KeyCode::F1, ConsumerKeyCode::BRIGHTNESS_DOWN</autogen> | |
<autogen>--KeyToConsumer-- KeyCode::F2, ConsumerKeyCode::BRIGHTNESS_UP</autogen> | |
<autogen>--KeyToKey-- KeyCode::F3, KeyCode::MISSION_CONTROL</autogen> |
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
# Configs | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
config secondsBetweenRepeat 0.1 | |
config checkDefaultsOnLoad true | |
config focusCheckWidthMax 3000 | |
config windowHintsShowIcons true | |
config windowHintsBackgroundColor 96;96;64;0.5 | |
config windowHintsIgnoreHiddenWindows true |
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.Linq.Expressions; | |
using Automatonymous; | |
using NHibernate.Mapping.ByCode; | |
public static class AutomatonymousNHibernateExtensions | |
{ | |
public static void StateProperty<T, TMachine>(this IClassMapper<T> mapper, Expression<Func<T, State>> stateExpression) | |
where T : class | |
where TMachine : StateMachine, new() |
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.Collections.Generic; | |
namespace System.Linq | |
{ | |
public static class LeftJoinExtension | |
{ | |
public static IEnumerable<TResult> LeftJoin<TLeft, TRight, TKey, TResult>( | |
this IEnumerable<TLeft> left, | |
IEnumerable<TRight> right, | |
Func<TLeft, TKey> leftKeySelector, |
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
[Test] | |
public void Extensible_the_command_line_should_be_yes() | |
{ | |
bool isSuperfly = false; | |
Host host = HostFactory.New(x => | |
{ | |
x.Service<MyService>(); | |
x.AddCommandLineSwitch("superfly", v => isSuperfly = v); |
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; | |
public interface IProxyAsyncResult<T> : | |
IAsyncResult | |
{ | |
T Result { get; } | |
} |
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
<UserSettings> | |
<ApplicationIdentity version="10.0"/> | |
<ToolsOptions> | |
<ToolsOptionsCategory name="Environment" RegisteredName="Environment"/> | |
</ToolsOptions> | |
<Category name="Database Tools" RegisteredName="Database Tools"/> | |
<Category name="Environment_Group" RegisteredName="Environment_Group"> | |
<Category name="Environment_FontsAndColors" Category="{1EDA5DD4-927A-43a7-810E-7FD247D0DA1D}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_FontsAndColors" PackageName="Visual Studio Environment Package"> | |
<PropertyValue name="Version">2</PropertyValue> | |
<FontsAndColors Version="2.0"> |
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 interface AppendText | |
{ | |
string Append(params string[] args); | |
} |