Beispiel #1
0
        /// <summary>
        /// Adds Queue authenticator
        /// </summary>
        public void AddQueueAuthenticator(IQueueAuthenticator handler)
        {
            List <IQueueAuthenticator> list = _queueAuthenticators.ToList();

            list.Add(handler);
            _queueAuthenticators = list.ToArray();
        }
Beispiel #2
0
        /// <summary>
        /// Removes Queue authenticator
        /// </summary>
        public void RemoveQueueAuthenticator(IQueueAuthenticator handler)
        {
            List <IQueueAuthenticator> list = _queueAuthenticators.ToList();

            list.Remove(handler);
            _queueAuthenticators = list.ToArray();
        }
Beispiel #3
0
 /// <summary>
 /// Uses queue authentication
 /// </summary>
 public static HorseMqBuilder AddQueueAuthentication(this HorseMqBuilder builder, IQueueAuthenticator authenticator)
 {
     builder.Server.AddQueueAuthenticator(authenticator);
     return(builder);
 }