internal static void Registry(BaseUserActivityPublisher publisher)
 {
     lock (_publishers)
     {
         if (!_publishers.ContainsKey(publisher.GetType()))
         {
             _publishers.Add(publisher.GetType(), publisher);
         }
     }
 }
 internal static void UnRegistry(BaseUserActivityPublisher publisher)
 {
     lock (_publishers)
     {
         if (_publishers.ContainsKey(publisher.GetType()))
         {
             _publishers.Remove(publisher.GetType());
         }
     }
 }