예제 #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; }));
 }