Example #1
0
 /// <summary>
 /// Configures Rebus to use SQLServer as its transport in "one-way client mode" (i.e. as a send-only endpoint).
 /// </summary>
 /// <param name="configurer"></param>
 /// <param name="transportOptions"></param>
 /// <returns></returns>
 public static SqlServerTransportOptions UseSqlServerAsOneWayClient(this StandardConfigurer <ITransport> configurer, SqlServerTransportOptions transportOptions)
 {
     return(Configure(
                configurer,
                (context, provider, inputQueue) => new SqlServerTransport(provider, inputQueue, context.Get <IRebusLoggerFactory>(), context.Get <IAsyncTaskFactory>(), context.Get <IRebusTime>()),
                transportOptions
                )
            .AsOneWayClient());
 }
Example #2
0
 /// <summary>
 /// Configures Rebus to use SQL Server as its transport
 /// </summary>
 /// <param name="configurer">Static to extend</param>
 /// <param name="transportOptions">Options controlling the transport setup</param>
 /// <param name="inputQueueName">Queue name to process messages from</param>
 public static SqlServerTransportOptions UseSqlServer(this StandardConfigurer <ITransport> configurer, SqlServerTransportOptions transportOptions, string inputQueueName)
 {
     return(Configure(
                configurer,
                (context, provider, inputQueue) => new SqlServerTransport(provider, inputQueue, context.Get <IRebusLoggerFactory>(), context.Get <IAsyncTaskFactory>(), context.Get <IRebusTime>()),
                transportOptions
                )
            .ReadFrom(inputQueueName));
 }