public void StartPrintingLogFiles(string Message) { IMathServiceCallback msCallback = OperationContext.Current.GetCallbackChannel <IMathServiceCallback>(); // Print code here.... System.Threading.Thread.Sleep(5000); msCallback.NotifyClientWhenPrintDone(Message); }
public void StartPrintingLogFiles(string message) { IMathServiceCallback MScallback = OperationContext.Current.GetCallbackChannel < IMathServiceCallback>(); //Printing code comes here. System.Threading.Thread.Sleep(new TimeSpan(0, 0, 5)); MScallback.NotifyClientWhenPrintingIsDone(message); }