コード例 #1
0
        public MSMQBrowserControl(MSMQProvider queuProvider)
            : this()
        {
            queuePath.Text = queuProvider.Name;
            _messagingProvider = queuProvider;

            Submit_Click(null, null);
        }
コード例 #2
0
 /// <summary>
 /// Creates a <see cref="MSMQBrowserControl"/> for a given connection string.
 /// </summary>
 /// <param name="connectionString">The connection string to the MSMQ.</param>
 /// <returns>A <see cref="MSMQBrowserControl"/>.</returns>
 public static MSMQBrowserControl Create(string connectionString)
 {
     MSMQProvider provider = new MSMQProvider(connectionString);
     return new MSMQBrowserControl(provider);
 }