private static void AddTrafficStats(ISyncContext ctx, T svc) { var notificator = svc as ITransferNotificator; if (notificator == null) { return; } ctx.AddUploadStats(notificator.TotalUploaded); ctx.AddDownloadStats(notificator.TotalDownloaded); }
private static void AddTrafficStats(ISyncContext ctx, T svc) { var notificator = svc as ITransferNotificator; if (notificator == null) { return; } ctx.AddUploadStats(notificator.TotalUploaded); ctx.AddDownloadStats(notificator.TotalDownloaded); }