Here are the examples of the csharp api class System.Collections.Concurrent.BlockingCollection.Add(Winter.TimeoutRequest) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
Project: WinterBot
Source File: TwitchClient.cs
Source File: TwitchClient.cs
public void Timeout(string user, int duration = 600) { StartTimeoutThread(); if (duration <= 0) duration = 1; int delay = TimeoutDelay; if (delay <= 0) { TimeoutRaw(user, duration); } else if (delay <= 150) { Thread.Sleep(delay); TimeoutRaw(user, duration); } else { var request = new TimeoutRequest(this, user, duration); m_timeouts.Add(request); } }
0
2. Example
Project: WinterBot
Source File: TwitchClient.cs
Source File: TwitchClient.cs
public void Ban(string user) { StartTimeoutThread(); int delay = TimeoutDelay; if (delay <= 0) { BanRaw(user); } else if (delay <= 150) { Thread.Sleep(delay); BanRaw(user); } else { var request = new TimeoutRequest(this, user, -1); m_timeouts.Add(request); } }