public void Activate(IActivationLog log, IPerfTimer timer) { if (!_settings.Enabled) { log.Trace("Skipping activation because FubuTranportation is disabled."); return; } timer.Record("Activating Transports and Starting Listening", () => _transports.Activate(log, timer)); timer.Record("Activating Subscriptions", () => _subscriptions.Activate(log, timer)); timer.Record("Activating Polling Jobs", () => _pollingJobs.Activate(log, timer)); }
public void Activate(IEnumerable <IPackageInfo> packages, IPackageLog log) { if (_settings.Disabled) { log.Trace("Skipping activation because FubuTranportation is disabled."); return; } PackageRegistry.Timer.Record("Activating Transports and Starting Listening", () => _transports.Activate(packages, log)); PackageRegistry.Timer.Record("Activating Subscriptions", () => _subscriptions.Activate(packages, log)); PackageRegistry.Timer.Record("Activating Polling Jobs", () => _pollingJobs.Activate(packages, log)); }