Пример #1
0
        public static void Put(object cacheKey, object cacheItem)
        {
            var parallelParam = new ParallelParam()
            {
                Param1 = cacheKey,
                Param2 = cacheItem
            };

            var parallelDelegate = new ParameterizedThreadStart(put);

            Parallelizer.StartNewProcess(parallelDelegate, parallelParam);
        }
Пример #2
0
 public static void StartNewProcess(ParameterizedThreadStart startMethod, ParallelParam argument)
 {
     new Thread(startMethod).Start(argument);
 }