/// <summary>
 /// Adds the client to warning list.
 /// </summary>
 /// <param name="clientId">The client id.</param>
 /// <param name="type">The type.</param>
 public void AddClientToWarningList(uint clientId, WarnType type)
 {
     var clientWarning = new ClientWarningEntity(clientId, type);
     lock (Container.lockClientWarningList)
     {
         if (!Container.ClientWarningList.Contains(clientWarning))
             Container.ClientWarningList.Add(clientWarning);
     }
 }
Пример #2
0
        /// <summary>
        /// Adds the client to warning list.
        /// </summary>
        /// <param name="clientId">The client id.</param>
        /// <param name="type">The type.</param>
        public void AddClientToWarningList(uint clientId, WarnType type)
        {
            var clientWarning = new ClientWarningEntity(clientId, type);

            lock (Container.lockClientWarningList)
            {
                if (!Container.ClientWarningList.Contains(clientWarning))
                {
                    Container.ClientWarningList.Add(clientWarning);
                }
            }
        }