This file contains 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
class MessageUpConverter : IBehavior<ReceiveLogicalMessageContext> | |
{ | |
public MessageMetadataRegistry MessageMetadataRegistry { get; set; } | |
public void Invoke(ReceiveLogicalMessageContext context, Action next) | |
{ | |
Console.Out.WriteLine("Upconverter invoked"); | |
var meta = MessageMetadataRegistry.GetMessageDefinition(typeof (V2Message)); |
This file contains 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
<configuration> | |
<config> | |
<add key="DependencyVersion" value="HighestMinor" /> | |
</config> | |
</configuration> |
This file contains 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 NServiceBus.Pipeline; | |
using NServiceBus.Pipeline.Contexts; | |
namespace TTBRDemo | |
{ | |
using NServiceBus; | |
class EndpointConfig : IConfigureThisEndpoint, AsA_Server |
This file contains 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
namespace MsmqAsyncSpike | |
{ | |
using System; | |
using System.Messaging; | |
using System.Threading; | |
using System.Threading.Tasks; | |
class Program | |
{ | |
static void Main(string[] args) |
This file contains 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.Concurrent; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Transactions; | |
using MassTransit.Util; | |
namespace MsmqAsyncSpike | |
{ | |
using System; |
This file contains 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 EndpointConfig : AsA_Server, IConfigureThisEndpoint,IWantCustomInitialization | |
{ | |
public void Init() | |
{ | |
Configure.With() | |
.Log4Net() | |
.UsingContainer<SpringObjectBuilder>() | |
} |
This file contains 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 SSSBMessageForwarder : IWantToRunAtStartup | |
{ | |
readonly IBus _bus; | |
readonly ITransport _transport; | |
public SSSBMessageForwarder(IBus bus, ISSSBTransportFactory transportFactory) | |
{ | |
_bus = bus; | |
_transport = transportFactory.GetTransport(); |
This file contains 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
CREATE PROCEDURE [dbo].[SendNServiceBusMessage] | |
@TargetService NVARCHAR(200), | |
@MessageName NVARCHAR(200), | |
@MessageContent NVARCHAR(4000) | |
AS | |
BEGIN | |
-- Sending a Service Broker Message | |
DECLARE @InitDlgHandle UNIQUEIDENTIFIER; |
This file contains 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 NServiceBus.ObjectBuilder.Common.Config; | |
using NServiceBus.ObjectBuilder.Spring; | |
using Spring.Context.Support; | |
using NServiceBus; | |
namespace CoreOnly | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
This file contains 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 NServiceBus; | |
using Rhino.Mocks; | |
using Rhino.Mocks.Interfaces; | |
using NSB = NServiceBus; | |
namespace NullReference.NServiceBus | |
{ | |
public static class BusTestExtensions |
OlderNewer