Skip to content

Instantly share code, notes, and snippets.

View schotime's full-sized avatar

Adam Schroder schotime

  • Melbourne, Australia
View GitHub Profile
@schotime
schotime / pluginrunner.cs
Created January 8, 2012 05:53 — forked from jmarnold/pluginrunner.cs
Plugin Runner
public interface IActivity
{
void Run();
bool Matches(int i);
}
public class PluginCoordinator
{
private readonly IPluginActivator _activator;
private readonly PluginRunner _pluginRunner;
@schotime
schotime / gist:1113267
Created July 29, 2011 06:15 — forked from jmarnold/IModelTypeCoordinator.cs
ValidationBehavior<T>
public class ValidationBehavior<T> : BasicBehavior where T : class
{
IFubuRequest request;
IChainResolver chain;
IPartialFactory _factory;
public ValidationBehavior(IFubuRequest request, IChainResolver chain, IPartialFactory factory) : base(PartialBehavior.Executes)
{
this.request = request;
this.chain = chain;