Exemplo n.º 1
0
        public SocviewProcessingData Processing(SocviewProcessingData socviewData)
        {
            socviewData.ThrowIfNull("socviewData");

            //1.
            var socviewMessages = socviewData.GetUnprocessedSocviewMessages().ToArray();

            Parallel.ForEach(socviewMessages, ProcessSocviewMessage_1);

            //2.
            Parallel.ForEach(socviewMessages, ProcessSocviewMessage_2);

            //3.
            socviewData.SumNeg    += socviewData.SocviewPost.CalcSumNeg();
            socviewData.SumNegFRT += socviewData.SocviewPost.CalcSumNegFRT();
            socviewData.SumPos    += socviewData.SocviewPost.CalcSumPos();
            socviewData.SumPosFRT += socviewData.SocviewPost.CalcSumPosFRT();

            return(socviewData);
        }
 public SocviewProcessingData ExecuteTonalityMarking4Socview(SocviewProcessingData socviewData)
 {
     return(_TonalityMarking.ExecuteTonalityMarking4Socview(socviewData));
 }
Exemplo n.º 3
0
 public static SocviewProcessingData Processing(TonalityMarkingWcfService tonalityMarking, SocviewProcessingData socviewData)
 {
     return(new ParallelSocviewProcessing(tonalityMarking).Processing(socviewData));
 }