/// <summary> /// Adds Queue authenticator /// </summary> public void AddQueueAuthenticator(IQueueAuthenticator handler) { List <IQueueAuthenticator> list = _queueAuthenticators.ToList(); list.Add(handler); _queueAuthenticators = list.ToArray(); }
/// <summary> /// Removes Queue authenticator /// </summary> public void RemoveQueueAuthenticator(IQueueAuthenticator handler) { List <IQueueAuthenticator> list = _queueAuthenticators.ToList(); list.Remove(handler); _queueAuthenticators = list.ToArray(); }
/// <summary> /// Uses queue authentication /// </summary> public static HorseMqBuilder AddQueueAuthentication(this HorseMqBuilder builder, IQueueAuthenticator authenticator) { builder.Server.AddQueueAuthenticator(authenticator); return(builder); }