예제 #1
0
        public static void Main(string[] args)
        {
            var exampleSet = new ExampleSet()
                             .WithExample(new ParallelInvokeOneActionExample())
                             .WithExample(new ParallelInvokeManyActionsExample())
                             .WithExample(new ParallelInvokeBigAmountOfActionsExample())
                             .WithExample(new ParallelInvokeConfigurationExample())
                             .WithExample(new ParallelForExample())
                             .WithExample(new ParallelForEachExample())
                             .WithExample(new ParallelForManageStateExample())
                             .WithExample(new ParallelForManageLocalStateExample())
                             .WithExample(new ParallelForManageLocalStatePerformanceExample())
                             .WithExample(new EnumerableParallelExample())
                             .WithExample(new EnumerableParallelExceptionExample())
                             .WithExample(new TasksExample())
                             .WithExample(new TasksContinuationExample())
                             .WithExample(new TaskChildExample())
                             .WithExample(new ThreadExample())
                             .WithExample(new ThreadAbortExample())
                             .WithExample(new ThreadLocalAndStaticExample())
                             .WithExample(new ThreadPoolExample())
                             .WithExample(new AsyncExceptionExample())
                             .WithExample(new BlockingCollectionExample())
                             .WithExample(new BlockingStackExample())
                             .WithExample(new ConcurrentStackExample())
                             .WithExample(new ConcurrentDictionaryExample())
            ;

            exampleSet.RunLast();

            Console.ReadLine();
        }
예제 #2
0
        public static void Main(string[] args)
        {
            var examples = new ExampleSet()
                           .WithExample(new RequestsExample())
            ;

            examples.RunLast();

            Console.ReadLine();
        }
예제 #3
0
        public static void Main(string[] args)
        {
            var exampleSet = new ExampleSet()
                             .WithExample(new DelegateSubscriptionExample())
                             .WithExample(new EventsErrorsExample())
            ;

            exampleSet.RunLast();

            Console.ReadLine();
        }
예제 #4
0
        private static void Main(string[] args)
        {
            var exampleSet = new ExampleSet()
                             .WithExample(new RaceConditionExample())
                             .WithExample(new MonitorExample())
            ;

            exampleSet.RunLast();

            Console.ReadLine();
        }
예제 #5
0
        private static void Main(string[] args)
        {
            var examples = new ExampleSet()
                           .WithExample(new CodeDomExample())
                           .WithExample(new ConditionalExample())
                           .WithExample(new GCExample())
                           .WithExample(new StringReaderWriterExample())
            ;

            examples.RunLast();

            Console.ReadLine();
        }
예제 #6
0
        public static void Main(string[] args)
        {
            var examples = new ExampleSet()
                           .WithExample(new JsonExample())
                           .WithExample(new RegexExample())
                           .WithExample(new RegexCompilationExample())
                           .WithExample(new ValidationExample())
                           .WithExample(new TraceExample())
                           .WithExample(new TraceSourceExample())
                           .WithExample(new CounterReadExample())
                           .WithExample(new CounterCreateExample())
            ;

            examples.RunLast();

            Console.ReadLine();
        }