Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public static void StartNewProcess(ParameterizedThreadStart startMethod, ParallelParam argument)
 {
     new Thread(startMethod).Start(argument);
 }