CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of NServiceBus
XML
<UnicastBusConfig>
  <MessageEndpointMappings>
    <add Messages="Messages.Persistence" Endpoint="PersisterInputQueue" />
  </MessageEndpointMappings>
</UnicastBusConfig>
by Mikael Henriksson   January 19, 2010 @ 6:34am
382 Views
no comments
 
C#
protected void Application_Start(object sender, EventArgs e)
 {
     try
     {
         Bus = Configure.WithWeb()
             .SpringBuilder()
             .XmlSerializer()
             .MsmqTransport()
                 .IsTransactional(false)
                 .PurgeOnStartup(false)
by Mikael Henriksson   December 16, 2009 @ 3:24am
241 Views
no comments
 
C#
public static Configure CustomSagaPersister(this Configure config, ISessionFactory sessionFactory)
{
    if (sessionFactory == null)
    {
        throw new InvalidOperationException("Session factory is needed for saga persistence.");
    }
 
    config.Configurer.RegisterSingleton<ISessionFactory>(sessionFactory);
    config.Configurer
        .ConfigureComponent<FluentSagaPersister>(ComponentCallModelEnum.Singlecall)
by Mikael Henriksson   November 08, 2009 @ 9:40am
204 Views
no comments
 
C#
public class SagaFinder : IFindSagas<MySagaData>.Using<MyMessage>
{
    public MySagaData FindBy(MyMessage message)
    {
        
    }
}
by Mikael Henriksson   November 07, 2009 @ 5:53am
362 Views
no comments
 
C#
public static class ExtensionMethods
{
    public static Configure FluentSagaPersister(this Configure config)
    {
        ISessionFactory sessionFactory = FluentConfig.GetFluentSessionFactory();
        config.Configurer.RegisterSingleton<ISessionFactory>(sessionFactory);
        config.Configurer.ConfigureComponent<FluentSagaPersister>(ComponentCallModelEnum.Singlecall);
 
        return config;
    }
by Mikael Henriksson   September 20, 2009 @ 3:56am
280 Views
no comments
 
C#
public class FluentSagaPersister : ISagaPersister
{
    /// <summary>
    /// Injected session factory.
    /// </summary>
    public ISessionFactory SessionFactory { get; set; }
 
    #region ISagaPersister Members
 
    public void Save(ISagaEntity saga)
by Mikael Henriksson   September 20, 2009 @ 3:48am
313 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate