public void RemoveListener(IFastMessageListener <T> listener)
 {
     listeners.Remove(listener);
 }
Пример #2
0
        public static void AddListener <T>(IFastMessageListener <T> listener) where T : struct, IFastMessage
        {
            var publisher = GetPublisherForMessage <T>();

            publisher.AddListener(listener);
        }
 public void AddListener(IFastMessageListener <T> listener)
 {
     listeners.Add(listener);
 }