Skip to content

Instantly share code, notes, and snippets.

View KevM's full-sized avatar

Kevin Miller KevM

View GitHub Profile
public abstract class RuleContextView : AbstractSparkView
{
public IRuleContext Context { get; set; }
public override string ToString()
{
return Context.ToString();
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using Dimebrain.TweetSharp.Extensions;
using Dimebrain.TweetSharp.Fluent;
using Dimebrain.TweetSharp.Model;
namespace Carrier.Extension.Twitter
{
public interface ITwitterStream
public interface IMessagePublisher
{
void Publish<MESSAGE>(MESSAGE message) where MESSAGE : class;
}
public class MessagePublisher : IMessagePublisher
{
private readonly MessageBusSettings _messageBusSettings;
private readonly IEndpointFactory _endpointFactory;
@KevM
KevM / MessagePublisher.cs
Created January 29, 2010 15:06
Generic Masstransit Message Publisher/Sender
using Dovetail.Commons;
using MassTransit;
namespace Dovetail.Carrier.Core
{
public interface IMessagePublisher
{
void Publish<MESSAGE>(MESSAGE message) where MESSAGE : class;
}
"c:\projects\SolrNet\solrnet.proj" (SetRelease;Clean;Version;Build;Merge target) (1) ->
"c:\projects\SolrNet\SolrNet.sln" (Rebuild target) (2:2) ->
"c:\projects\SolrNet\NHibernate.SolrNet.Tests\NHibernate.SolrNet.Tests.csproj" (Rebuild target) (12:2) ->
CSC : warning CS1668: Invalid search path 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. '
public static class BasicExtensions
{
public static void WriteToConsole(this string stringValue)
{
Console.WriteLine(stringValue);
}
/// <summary>
/// Fills the format string with the provided arguments
/// </summary>
public abstract class InterceptExceptionBehavior<T> : IActionBehavior
where T : Exception
{
public IActionBehavior InsideBehavior { get; set; }
public void InvokePartial()
{
if (InsideBehavior != null)
InsideBehavior.InvokePartial();
}
using System;
using NUnit.Framework;
namespace StructureMap.Testing
{
[TestFixture]
public class getting_an_instance_of_a_type_with_an_unregistered_dependency
{
[Test]
public void should_describe_the_type_under_construction_in_the_thrown_exception()
public class AutoMessageConsumerSubscriptionService : IRequiredService
{
private readonly IContainer _container;
private readonly IServiceBus _serviceBus;
private readonly ILogger _logger;
public AutoMessageConsumerSubscriptionService(IContainer container, IServiceBus serviceBus, ILogger logger)
{
_container = container;
_serviceBus = serviceBus;
Imports FChoice.Foundation.Clarify
Imports System.Collections.Specialized
Imports FChoice.Foundation
Imports FChoice.Foundation.Clarify.Workflow
Imports NUnit.Framework
Module SDKExample
<TestFixture()> Public Class SDK_test
<Test()> Public Sub update_case_title()