private static void ReportServiceStarted( OperationContext context, IDistributedCacheServiceHost host, Result <ServiceOfflineDurationTracker> trackerResult, TimeSpan startupDuration) { var shutdownTimeUtc = trackerResult.Then(v => v.GetShutdownTime(context, logTimeStampToFile: true)); LifetimeTrackerTracer.ServiceStarted(context, startupDuration, shutdownTimeUtc); host.OnStartedService(); }
private static void ReportServiceStarted( Context context, IDistributedCacheServiceHost host, Result <ServiceOfflineDurationTracker> trackerResult, TimeSpan startupDuration) { var offlineTimeResult = trackerResult.Then(v => v.GetOfflineDuration(new OperationContext(context))); LifetimeTrackerTracer.ServiceStarted(context, offlineTimeResult, startupDuration); host.OnStartedService(); }