Skip to content

Instantly share code, notes, and snippets.

View jyoung's full-sized avatar

Joe Young jyoung

View GitHub Profile
@jyoung
jyoung / EasyNetQServiceBus.cs
Created July 12, 2012 20:41
Hooking up EasyNetQ actions with StructureMap
public class EasyNetQServiceBus : IServiceBus
{
private readonly IBus bus;
public EasyNetQServiceBus(IBus bus)
{
this.bus = bus;
}
#region Implementation of IServiceBus
@jyoung
jyoung / FakeAsyncMessageConsumer
Created March 24, 2014 19:58
EasyNetQ StuctureMapDispatcher
public class FakeAsyncMessageConsumer : IConsumeAsync<FakeMessage>
{
public Task Consume(FakeMessage message)
{
return Task.Factory.StartNew(() =>
{
Console.Out.WriteLine("Hello World Async!");
});
}
}
@jyoung
jyoung / TOH Theme
Last active March 12, 2018 14:30
LANSA Tour Of Heroes Theme
begin_com role(*EXTENDS #PRIM_THM) style(#ThemeStyle) basetheme(2015Indigo)
define_com class(#PRIM_VS.Style) name(#ThemeStyle) facename('Verdana') fontsize(12) fontunits(Pixel) textcolor(48:48:48)
* C O N T R O L D R A W S T Y L E S
* MenuBar
define_com class(#PRIM_THM.DrawStyle) name(#MenuBar) style(#MenuBarStyle)
define_com class(#PRIM_VS.Style) name(#MenuBarStyle) backgroundbrush(#MenubarBackgroundBrush)
@jyoung
jyoung / TOH Navigation Bar
Last active March 12, 2018 15:41
LANSA Tour Of Heroes Navigation Bar
function options(*DIRECT)
begin_com role(*EXTENDS #PRIM_PANL) displayposition(1) height(57) left(0) tabposition(1) top(0) width(500) layoutmanager(#MainPanelLayout)
* =====================================================================================
* LAYOUTS
* =====================================================================================
define_com class(#PRIM_TBLO) name(#MainPanelLayout)
define_com class(#PRIM_TBLO.Row) name(#LayoutRow1) displayposition(1) parent(#MainPanelLayout)
define_com class(#PRIM_TBLO.Column) name(#LayoutColumn1) displayposition(1) parent(#MainPanelLayout)
define_com class(#PRIM_TBLO.Item) name(#LayoutItem1) alignment(CenterLeft) column(#LayoutColumn1) manage(#DashboardLabel) parent(#MainPanelLayout) row(#LayoutRow1) sizing(ContentWidth) flow(Right) marginbottom(5) marginleft(5) marginright(5) margintop(5)
define_com class(#PRIM_TBLO.Item) name(#LayoutItem2) alignment(CenterLeft) column(#LayoutColumn1) manage(#HeroesLabel) parent(#MainPanelLayout) row(#LayoutRow1) sizing(Co
@jyoung
jyoung / TOH View Panel
Created March 12, 2018 14:37
LANSA Tour Of Heroes View Panel
function options(*DIRECT)
begin_com role(*EXTENDS #PRIM_PANL) displayposition(1) height(270) left(0) tabposition(1) top(0) width(500)
* =====================================================================================
* ROUTINES
* =====================================================================================
mthroutine name(Activate)
endroutine
mthroutine name(Deactivate)
@jyoung
jyoung / TOH Header Panel
Created March 12, 2018 14:41
LANSA Tour Of Heroes Header
function options(*DIRECT)
begin_com role(*EXTENDS #PRIM_PANL) displayposition(1) height(65) left(0) tabposition(1) top(0) width(500) layoutmanager(#MainPanelLayout)
* =====================================================================================
* LAYOUT
* =====================================================================================
define_com class(#PRIM_TBLO) name(#MainPanelLayout)
define_com class(#PRIM_TBLO.Row) name(#LayoutRow1) displayposition(1) parent(#MainPanelLayout)
define_com class(#PRIM_TBLO.Column) name(#LayoutColumn1) displayposition(1) parent(#MainPanelLayout)
define_com class(#PRIM_TBLO.Item) name(#LayoutItem1) alignment(TopLeft) column(#LayoutColumn1) manage(#HeaderLabel) parent(#MainPanelLayout) row(#LayoutRow1) flow(Down)
@jyoung
jyoung / TOH Web Page
Last active March 12, 2018 16:55
LANSA Tour Of Heroes Web Page
begin_com role(*EXTENDS #PRIM_WEB) layoutmanager(#MainPanelLayout)
* =====================================================================================
* STYLES
* =====================================================================================
define_com class(#PRIM_VS.Style) name(#Style1) borderbottom(1) borderbrush(#Brush1) borderleft(1) borderright(1) bordertop(1)
define_com class(#PRIM_VS.SolidBrush) name(#Brush1) color(2:255:30)
* =====================================================================================
* LAYOUTS
* =====================================================================================
@jyoung
jyoung / TOH Application Controller
Last active March 13, 2018 19:57
LANSA Tour Of Heroes Pt 2 Application Controller
function options(*DIRECT)
begin_com role(*EXTENDS #PRIM_OBJT)
* =====================================================================================
* COMPONENTS
* =====================================================================================
define_com class(#PRIM_KCOL<#PRIM_ALPH #STD_STRNG>) name(#mParameters)
* =====================================================================================
* PROPERTIES
@jyoung
jyoung / TOH ViewPanel Base
Last active March 13, 2018 19:57
LANSA Tour Of Heroes Pt 2 View Panel base class
function options(*DIRECT)
begin_com role(*EXTENDS #PRIM_PANL) displayposition(1) height(270) left(0) tabposition(1) top(0) width(500)
* =====================================================================================
* ROUTINES
* =====================================================================================
mthroutine name(Activate)
endroutine
mthroutine name(Deactivate)
@jyoung
jyoung / TOH Dashboard View Panel
Last active March 13, 2018 19:56
LANSA Tour Of Heroes Pt 2 Dashboard View Panel
function options(*DIRECT)
begin_com role(*EXTENDS #ViewPanel) style(#Style1) layoutmanager(#Layout1)
define_com class(#PRIM_VS.Style) name(#Style1) borderbottom(1) borderbrush(#Brush1) borderleft(1) borderright(1) bordertop(1)
define_com class(#PRIM_VS.SolidBrush) name(#Brush1) color(0:15:255)
define_com class(#PRIM_TBLO) name(#Layout1)
define_com class(#PRIM_TBLO.Row) name(#LayoutRow1) displayposition(1) parent(#Layout1)
define_com class(#PRIM_TBLO.Column) name(#LayoutColumn1) displayposition(1) parent(#Layout1)
define_com class(#PRIM_TBLO.Item) name(#LayoutItem1) alignment(TopLeft) column(#LayoutColumn1) manage(#Label1) parent(#Layout1) row(#LayoutRow1) sizing(None)