Ejemplo n.º 1
0
        public static MsmqConfiguration Default()
        {
            var configuration = new MsmqConfiguration();

            if (MsmqSection != null)
            {
                configuration.LocalQueueTimeoutMilliseconds = MsmqSection.LocalQueueTimeoutMilliseconds;
                configuration.RemoteQueueTimeoutMilliseconds = MsmqSection.RemoteQueueTimeoutMilliseconds;
            }

            return configuration;
        }
Ejemplo n.º 2
0
        public static MsmqConfiguration Default()
        {
            var configuration = new MsmqConfiguration();

            if (MsmqSection != null && msmqSection.Queues != null)
            {
                foreach (MsmqQueueElement queue in msmqSection.Queues)
                {
                    configuration.AddQueueConfiguration(new MsmqQueueConfiguration(new Uri(queue.Uri), queue.IsTransactional));
                }
            }

            return(configuration);
        }
 public MsmqQueueFactory(MsmqConfiguration configuration)
 {
     Configuration = configuration;
 }
 public MsmqQueueFactory()
     : this(MsmqConfiguration.Default())
 {
 }