/// <summary>
        /// Регистрирует обработку событий
        /// </summary>
        public static void StartListen(params RemoteEventHandler[] eventHandlers)
        {
            lock (LockObject)
            {
                if (_eventListener != null)
                {
                    throw new InvalidOperationException(
                              $"Повторная инициализация {nameof(RemoteEventListner)} не допускается!");
                }

                if (eventHandlers == null)
                {
                    return;
                }

                _remoteEventHandlers = eventHandlers.ToDictionary(x => x.EventName);

                _eventListener = new EventsListener(
                    DataContextFactory.GetConnectionOptions(DbTypeEnum.Main), _remoteEventHandlers.Keys.ToArray());
                _eventListener.EventHandler += OnUserEventHandler;

                foreach (var eventHandler in _remoteEventHandlers)
                {
                    eventHandler.Value.OnStart();
                }
            }
        }