Пример #1
0
 /// <summary>
 /// Extension to use ActiveMQ with specific host name
 /// </summary>
 /// <param name="options">Cap options</param>
 /// <param name="hostName">Host name to connect on</param>
 /// <returns>Cap options</returns>
 public static CapOptions UseActiveMQ(this CapOptions options, string hostName = "localhost")
 {
     return(options.UseActiveMQ(opt => { opt.HostName = hostName; }));
 }
Пример #2
0
 // ReSharper disable once InconsistentNaming
 // ReSharper disable once UnusedMember.Global
 public static CapOptions UseActiveMQ(this CapOptions options, string brokerUri)
 {
     return(options.UseActiveMQ(opt => { opt.BrokerUri = brokerUri; }));
 }