This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class KeyLockerExample | |
| { | |
| static readonly ThreadState[] StopStates = { ThreadState.AbortRequested, ThreadState.Aborted }; | |
| static void Main() | |
| { | |
| var threads = new List<Thread>(); | |
| var sw = new Stopwatch(); | |
| var timelimit = new TimeSpan(0, 0, 30); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.ServiceModel; | |
| public class ServiceHelper | |
| { | |
| #region Public Methods | |
| /// <summary> | |
| /// WCF proxys do not clean up properly if they throw an exception. This method ensures that the service proxy is handled correctly. | |
| /// Do not call TService.Close() or TService.Abort() within the action lambda. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Drawing; | |
| using Console = Colorful.Console; | |
| namespace lolcmd | |
| { | |
| class Program | |
| { | |
| private static Random random = new Random(); |
OlderNewer