Transport definition for MSMQ
Inheritance: TransportDefinition
Exemple #1
0
        public static MsmqTransportSettings UseTransport <TTransport>(this EndpointConfiguration endpointConfiguration)
            where TTransport : MsmqTransport
        {
            var msmqTransport   = new MsmqTransport();
            var routingSettings = endpointConfiguration.UseTransport(msmqTransport);

            return(new MsmqTransportSettings(msmqTransport, routingSettings));
        }
 public TransportConfigurationResult Configure(SettingsHolder settings, TransportTransactionMode transactionMode)
 {
     var msmqTransportDefinition = new MsmqTransport();
     settingsHolder = settings;
     return new TransportConfigurationResult
     {
         TransportInfrastructure = msmqTransportDefinition.Initialize(settingsHolder, ""),
         PurgeInputQueueOnStartup = true
     };
 }