Esempio n. 1
0
        public void FinishAll()
        {
            var sf = new StackFrame();
            var mn = sf.GetMethod().Name;

            ProgressInfoMessage msgEntity = ProgressInfoMessageBuilder.Create()
                                            .WithCallbackMethodName(mn)
                                            .WithServiceType(serviceType)
                                            .Build();

            distributionFacility.Push(msgEntity);
        }
Esempio n. 2
0
        public void SendTaskProgressIncrease(string user)
        {
            var sf = new StackFrame();
            var mn = sf.GetMethod().Name;

            ProgressInfoMessage msgEntity = ProgressInfoMessageBuilder.Create()
                                            .WithCallbackMethodName(mn)
                                            .WithServiceType(serviceType)
                                            .WithUser(user)
                                            .WithValue(1)
                                            .Build();

            distributionFacility.Push(msgEntity);
        }
Esempio n. 3
0
        public void SendTaskProgressTotal(int count, TotalType totalType)
        {
            var sf = new StackFrame();
            var mn = sf.GetMethod().Name;

            var msgEntity = ProgressInfoMessageBuilder.Create()
                            .WithCallbackMethodName(mn)
                            .WithServiceType(serviceType)
                            .WithTotal(count)
                            .WithTotalType(totalType)
                            .Build();

            distributionFacility.Push(msgEntity);
        }