Repository: HangfireIO/Hangfire
Branch: main
Commit: 333bd8eb2284
Files: 595
Total size: 4.3 MB
Directory structure:
gitextract_a8bklu6g/
├── .editorconfig
├── .gitattributes
├── .gitignore
├── .nuget/
│ ├── packages.config
│ └── packages.lock.json
├── CONTRIBUTING.md
├── COPYING
├── COPYING.LESSER
├── Directory.Build.props
├── Hangfire.sln
├── Hangfire.sln.DotSettings
├── LICENSE.md
├── LICENSE_ROYALTYFREE
├── LICENSE_STANDARD
├── NOTICES
├── NuGet.config
├── README.md
├── SECURITY.md
├── appveyor.yml
├── build.bat
├── build.sh
├── coverity-scan.ps1
├── nuspecs/
│ ├── Hangfire.AspNetCore.nuspec
│ ├── Hangfire.Core.nuspec
│ ├── Hangfire.NetCore.nuspec
│ ├── Hangfire.SqlServer.MSMQ.nuspec
│ ├── Hangfire.SqlServer.nuspec
│ └── Hangfire.nuspec
├── psake-project.ps1
├── samples/
│ ├── ConsoleSample/
│ │ ├── ConsoleSample.csproj
│ │ ├── GenericServices.cs
│ │ ├── NewFeatures.cs
│ │ ├── Program.cs
│ │ ├── Services.cs
│ │ ├── Startup.cs
│ │ ├── app.config
│ │ └── packages.lock.json
│ └── NetCoreSample/
│ ├── NetCoreSample.csproj
│ ├── Program.cs
│ └── packages.lock.json
├── src/
│ ├── Directory.Build.props
│ ├── Hangfire.AspNetCore/
│ │ ├── Dashboard/
│ │ │ ├── AspNetCoreDashboardContext.cs
│ │ │ ├── AspNetCoreDashboardContextExtensions.cs
│ │ │ ├── AspNetCoreDashboardMiddleware.cs
│ │ │ ├── AspNetCoreDashboardRequest.cs
│ │ │ └── AspNetCoreDashboardResponse.cs
│ │ ├── Hangfire.AspNetCore.csproj
│ │ ├── HangfireApplicationBuilderExtensions.cs
│ │ ├── HangfireEndpointRouteBuilderExtensions.cs
│ │ ├── Properties/
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.lock.json
│ ├── Hangfire.Core/
│ │ ├── AppBuilderExtensions.cs
│ │ ├── App_Packages/
│ │ │ ├── LibLog.1.4/
│ │ │ │ └── LibLog.cs
│ │ │ ├── StackTraceFormatter/
│ │ │ │ └── StackTraceFormatter.cs
│ │ │ └── StackTraceParser/
│ │ │ └── StackTraceParser.cs
│ │ ├── AttemptsExceededAction.cs
│ │ ├── AutomaticRetryAttribute.cs
│ │ ├── BackgroundJob.Instance.cs
│ │ ├── BackgroundJob.cs
│ │ ├── BackgroundJobClient.cs
│ │ ├── BackgroundJobClientException.cs
│ │ ├── BackgroundJobClientExtensions.cs
│ │ ├── BackgroundJobServer.cs
│ │ ├── BackgroundJobServerOptions.cs
│ │ ├── CaptureCultureAttribute.cs
│ │ ├── Client/
│ │ │ ├── BackgroundJobFactory.cs
│ │ │ ├── ClientExceptionContext.cs
│ │ │ ├── CoreBackgroundJobFactory.cs
│ │ │ ├── CreateContext.cs
│ │ │ ├── CreatedContext.cs
│ │ │ ├── CreatingContext.cs
│ │ │ ├── IBackgroundJobFactory.cs
│ │ │ ├── IClientExceptionFilter.cs
│ │ │ └── IClientFilter.cs
│ │ ├── Common/
│ │ │ ├── CachedExpressionCompiler.cs
│ │ │ ├── CancellationTokenExtentions.cs
│ │ │ ├── ExpressionUtil/
│ │ │ │ ├── BinaryExpressionFingerprint.cs
│ │ │ │ ├── CachedExpressionCompiler.cs
│ │ │ │ ├── ConditionalExpressionFingerprint.cs
│ │ │ │ ├── ConstantExpressionFingerprint.cs
│ │ │ │ ├── DefaultExpressionFingerprint.cs
│ │ │ │ ├── ExpressionFingerprint.cs
│ │ │ │ ├── ExpressionFingerprintChain.cs
│ │ │ │ ├── FingerprintingExpressionVisitor.cs
│ │ │ │ ├── HashCodeCombiner.cs
│ │ │ │ ├── Hoisted.cs
│ │ │ │ ├── HoistingExpressionVisitor.cs
│ │ │ │ ├── IndexExpressionFingerprint.cs
│ │ │ │ ├── LambdaExpressionFingerprint.cs
│ │ │ │ ├── MemberExpressionFingerprint.cs
│ │ │ │ ├── MethodCallExpressionFingerprint.cs
│ │ │ │ ├── ParameterExpressionFingerprint.cs
│ │ │ │ ├── TypeBinaryExpressionFingerprint.cs
│ │ │ │ └── UnaryExpressionFingerprint.cs
│ │ │ ├── IJobFilter.cs
│ │ │ ├── IJobFilterProvider.cs
│ │ │ ├── Job.cs
│ │ │ ├── JobFilter.cs
│ │ │ ├── JobFilterAttribute.cs
│ │ │ ├── JobFilterAttributeFilterProvider.cs
│ │ │ ├── JobFilterCollection.cs
│ │ │ ├── JobFilterInfo.cs
│ │ │ ├── JobFilterProviderCollection.cs
│ │ │ ├── JobFilterProviders.cs
│ │ │ ├── JobFilterScope.cs
│ │ │ ├── JobHelper.cs
│ │ │ ├── JobLoadException.cs
│ │ │ ├── LanguagePolyfills.cs
│ │ │ ├── MethodInfoExtensions.cs
│ │ │ ├── ReflectedAttributeCache.cs
│ │ │ ├── SerializationHelper.cs
│ │ │ ├── ShallowExceptionHelper.cs
│ │ │ ├── TypeExtensions.cs
│ │ │ ├── TypeHelper.cs
│ │ │ └── TypeHelperSerializationBinder.cs
│ │ ├── ContinuationsSupportAttribute.cs
│ │ ├── Cron.cs
│ │ ├── Dashboard/
│ │ │ ├── BatchCommandDispatcher.cs
│ │ │ ├── CombinedResourceDispatcher.cs
│ │ │ ├── CommandDispatcher.cs
│ │ │ ├── Content/
│ │ │ │ ├── css/
│ │ │ │ │ ├── hangfire-dark.css
│ │ │ │ │ └── hangfire.css
│ │ │ │ ├── js/
│ │ │ │ │ └── hangfire.js
│ │ │ │ └── resx/
│ │ │ │ ├── Strings.Designer.cs
│ │ │ │ ├── Strings.ca.resx
│ │ │ │ ├── Strings.de.resx
│ │ │ │ ├── Strings.es.resx
│ │ │ │ ├── Strings.fa.resx
│ │ │ │ ├── Strings.fr.resx
│ │ │ │ ├── Strings.nb.resx
│ │ │ │ ├── Strings.nl.resx
│ │ │ │ ├── Strings.pt-BR.resx
│ │ │ │ ├── Strings.pt-PT.resx
│ │ │ │ ├── Strings.pt.resx
│ │ │ │ ├── Strings.resx
│ │ │ │ ├── Strings.sv.resx
│ │ │ │ ├── Strings.tr-TR.resx
│ │ │ │ ├── Strings.zh-TW.resx
│ │ │ │ └── Strings.zh.resx
│ │ │ ├── DashboardContext.cs
│ │ │ ├── DashboardMetric.cs
│ │ │ ├── DashboardMetrics.cs
│ │ │ ├── DashboardRequest.cs
│ │ │ ├── DashboardResponse.cs
│ │ │ ├── DashboardRoutes.cs
│ │ │ ├── EmbeddedResourceDispatcher.cs
│ │ │ ├── HtmlHelper.cs
│ │ │ ├── IDashboardAsyncAuthorizationFilter.cs
│ │ │ ├── IDashboardAuthorizationFilter.cs
│ │ │ ├── IDashboardDispatcher.cs
│ │ │ ├── JobDetailsRenderer.cs
│ │ │ ├── JobHistoryRenderer.cs
│ │ │ ├── JobMethodCallRenderer.cs
│ │ │ ├── JobsSidebarMenu.cs
│ │ │ ├── JsonStats.cs
│ │ │ ├── LocalRequestsOnlyAuthorizationFilter.cs
│ │ │ ├── MenuItem.cs
│ │ │ ├── Metric.cs
│ │ │ ├── NavigationMenu.cs
│ │ │ ├── NonEscapedString.cs
│ │ │ ├── Owin/
│ │ │ │ ├── IOwinDashboardAntiforgery.cs
│ │ │ │ ├── MiddlewareExtensions.cs
│ │ │ │ ├── OwinDashboardContext.cs
│ │ │ │ ├── OwinDashboardContextExtensions.cs
│ │ │ │ ├── OwinDashboardRequest.cs
│ │ │ │ └── OwinDashboardResponse.cs
│ │ │ ├── Pager.cs
│ │ │ ├── Pages/
│ │ │ │ ├── AwaitingJobsPage.cshtml
│ │ │ │ ├── AwaitingJobsPage.cshtml.cs
│ │ │ │ ├── DeletedJobsPage.cshtml
│ │ │ │ ├── DeletedJobsPage.cshtml.cs
│ │ │ │ ├── EnqueuedJobsPage.cs
│ │ │ │ ├── EnqueuedJobsPage.cshtml
│ │ │ │ ├── EnqueuedJobsPage.cshtml.cs
│ │ │ │ ├── FailedJobsPage.cshtml
│ │ │ │ ├── FailedJobsPage.cshtml.cs
│ │ │ │ ├── FetchedJobsPage.cs
│ │ │ │ ├── FetchedJobsPage.cshtml
│ │ │ │ ├── FetchedJobsPage.cshtml.cs
│ │ │ │ ├── HomePage.cs
│ │ │ │ ├── HomePage.cshtml
│ │ │ │ ├── HomePage.cshtml.cs
│ │ │ │ ├── JobDetailsPage.cs
│ │ │ │ ├── JobDetailsPage.cshtml
│ │ │ │ ├── JobDetailsPage.cshtml.cs
│ │ │ │ ├── LayoutPage.cs
│ │ │ │ ├── LayoutPage.cshtml
│ │ │ │ ├── LayoutPage.cshtml.cs
│ │ │ │ ├── ProcessingJobsPage.cshtml
│ │ │ │ ├── ProcessingJobsPage.cshtml.cs
│ │ │ │ ├── QueuesPage.cshtml
│ │ │ │ ├── QueuesPage.cshtml.cs
│ │ │ │ ├── RecurringJobsPage.cshtml
│ │ │ │ ├── RecurringJobsPage.cshtml.cs
│ │ │ │ ├── RetriesPage.cshtml
│ │ │ │ ├── RetriesPage.cshtml.cs
│ │ │ │ ├── ScheduledJobsPage.cshtml
│ │ │ │ ├── ScheduledJobsPage.cshtml.cs
│ │ │ │ ├── ServersPage.cshtml
│ │ │ │ ├── ServersPage.cshtml.cs
│ │ │ │ ├── SucceededJobs.cshtml
│ │ │ │ ├── SucceededJobs.cshtml.cs
│ │ │ │ ├── _BlockMetric.cs
│ │ │ │ ├── _BlockMetric.cshtml
│ │ │ │ ├── _BlockMetric.cshtml.cs
│ │ │ │ ├── _Breadcrumbs.cs
│ │ │ │ ├── _Breadcrumbs.cshtml
│ │ │ │ ├── _Breadcrumbs.cshtml.cs
│ │ │ │ ├── _ErrorAlert.cshtml
│ │ │ │ ├── _ErrorAlert.cshtml.cs
│ │ │ │ ├── _InlineMetric.cs
│ │ │ │ ├── _InlineMetric.cshtml
│ │ │ │ ├── _InlineMetric.cshtml.cs
│ │ │ │ ├── _Navigation.cshtml
│ │ │ │ ├── _Navigation.cshtml.cs
│ │ │ │ ├── _Paginator.cs
│ │ │ │ ├── _Paginator.cshtml
│ │ │ │ ├── _Paginator.cshtml.cs
│ │ │ │ ├── _PerPageSelector.cs
│ │ │ │ ├── _PerPageSelector.cshtml
│ │ │ │ ├── _PerPageSelector.cshtml.cs
│ │ │ │ ├── _SidebarMenu.cs
│ │ │ │ ├── _SidebarMenu.cshtml
│ │ │ │ └── _SidebarMenu.cshtml.cs
│ │ │ ├── RazorPage.cs
│ │ │ ├── RazorPageDispatcher.cs
│ │ │ ├── RouteCollection.cs
│ │ │ ├── RouteCollectionExtensions.cs
│ │ │ └── UrlHelper.cs
│ │ ├── DashboardOptions.cs
│ │ ├── DisableConcurrentExecutionAttribute.cs
│ │ ├── ExceptionInfo.cs
│ │ ├── ExceptionTypeHelper.cs
│ │ ├── FromParameterAttribute.cs
│ │ ├── FromResultAttribute.cs
│ │ ├── GlobalConfiguration.cs
│ │ ├── GlobalConfigurationExtensions.cs
│ │ ├── GlobalJobFilters.cs
│ │ ├── GlobalStateHandlers.cs
│ │ ├── Hangfire.Core.csproj
│ │ ├── IBackgroundJobClient.cs
│ │ ├── IGlobalConfiguration.cs
│ │ ├── IJobCancellationToken.cs
│ │ ├── IRecurringJobManager.cs
│ │ ├── ITimeZoneResolver.cs
│ │ ├── IdempotentCompletionAttribute.cs
│ │ ├── JobActivator.cs
│ │ ├── JobActivatorContext.cs
│ │ ├── JobActivatorScope.cs
│ │ ├── JobCancellationToken.cs
│ │ ├── JobCancellationTokenExtensions.cs
│ │ ├── JobContinuationOptions.cs
│ │ ├── JobDisplayNameAttribute.cs
│ │ ├── JobParameterInjectionFilter.cs
│ │ ├── JobStorage.cs
│ │ ├── LatencyTimeoutAttribute.cs
│ │ ├── MisfireHandlingMode.cs
│ │ ├── MoreLinq/
│ │ │ └── MoreEnumerable.Pairwise.cs
│ │ ├── Obsolete/
│ │ │ ├── BootstrapperConfigurationExtensions.cs
│ │ │ ├── CreateJobFailedException.cs
│ │ │ ├── DashboardMiddleware.cs
│ │ │ ├── DashboardOwinExtensions.cs
│ │ │ ├── IAuthorizationFilter.cs
│ │ │ ├── IBootstrapperConfiguration.cs
│ │ │ ├── IRequestDispatcher.cs
│ │ │ ├── IServerComponent.cs
│ │ │ ├── IServerProcess.cs
│ │ │ ├── Job.Obsolete.cs
│ │ │ ├── OwinBootstrapper.cs
│ │ │ ├── RequestDispatcherContext.cs
│ │ │ ├── RequestDispatcherWrapper.cs
│ │ │ ├── ServerOwinExtensions.cs
│ │ │ ├── ServerWatchdogOptions.cs
│ │ │ ├── StartupConfiguration.cs
│ │ │ └── StateContext.cs
│ │ ├── Processing/
│ │ │ ├── AppDomainUnloadMonitor.cs
│ │ │ ├── BackgroundDispatcher.cs
│ │ │ ├── BackgroundDispatcherAsync.cs
│ │ │ ├── BackgroundExecution.cs
│ │ │ ├── BackgroundExecutionOptions.cs
│ │ │ ├── BackgroundTaskScheduler.cs
│ │ │ ├── IBackgroundDispatcher.cs
│ │ │ ├── IBackgroundExecution.cs
│ │ │ ├── InlineSynchronizationContext.cs
│ │ │ └── TaskExtensions.cs
│ │ ├── Profiling/
│ │ │ ├── EmptyProfiler.cs
│ │ │ ├── IProfiler.cs
│ │ │ ├── ProfilerExtensions.cs
│ │ │ └── SlowLogProfiler.cs
│ │ ├── Properties/
│ │ │ ├── Annotations.cs
│ │ │ ├── AssemblyInfo.cs
│ │ │ └── NamespaceDoc.cs
│ │ ├── QueueAttribute.cs
│ │ ├── Razor.build
│ │ ├── RecurringJob.cs
│ │ ├── RecurringJobEntity.cs
│ │ ├── RecurringJobExtensions.cs
│ │ ├── RecurringJobManager.cs
│ │ ├── RecurringJobManagerExtensions.cs
│ │ ├── RecurringJobOptions.cs
│ │ ├── Server/
│ │ │ ├── AspNetShutdownDetector.cs
│ │ │ ├── BackgroundJobPerformer.cs
│ │ │ ├── BackgroundProcessContext.cs
│ │ │ ├── BackgroundProcessDispatcherBuilder.cs
│ │ │ ├── BackgroundProcessDispatcherBuilderAsync.cs
│ │ │ ├── BackgroundProcessExtensions.cs
│ │ │ ├── BackgroundProcessingServer.cs
│ │ │ ├── BackgroundProcessingServerOptions.cs
│ │ │ ├── BackgroundServerContext.cs
│ │ │ ├── BackgroundServerProcess.cs
│ │ │ ├── CoreBackgroundJobPerformer.cs
│ │ │ ├── DelayedJobScheduler.cs
│ │ │ ├── IBackgroundJobPerformer.cs
│ │ │ ├── IBackgroundProcess.cs
│ │ │ ├── IBackgroundProcessAsync.cs
│ │ │ ├── IBackgroundProcessDispatcherBuilder.cs
│ │ │ ├── IBackgroundProcessingServer.cs
│ │ │ ├── IBackgroundServerProcess.cs
│ │ │ ├── IServerExceptionFilter.cs
│ │ │ ├── IServerFilter.cs
│ │ │ ├── JobAbortedException.cs
│ │ │ ├── JobPerformanceException.cs
│ │ │ ├── PerformContext.cs
│ │ │ ├── PerformedContext.cs
│ │ │ ├── PerformingContext.cs
│ │ │ ├── RecurringJobScheduler.cs
│ │ │ ├── ServerContext.cs
│ │ │ ├── ServerExceptionContext.cs
│ │ │ ├── ServerHeartbeatProcess.cs
│ │ │ ├── ServerJobCancellationToken.cs
│ │ │ ├── ServerJobCancellationWatcher.cs
│ │ │ ├── ServerProcessDispatcherBuilder.cs
│ │ │ ├── ServerWatchdog.cs
│ │ │ └── Worker.cs
│ │ ├── States/
│ │ │ ├── ApplyStateContext.cs
│ │ │ ├── AwaitingState.cs
│ │ │ ├── BackgroundJobStateChanger.cs
│ │ │ ├── CoreStateMachine.cs
│ │ │ ├── DeletedState.cs
│ │ │ ├── ElectStateContext.cs
│ │ │ ├── EnqueuedState.cs
│ │ │ ├── FailedState.cs
│ │ │ ├── IApplyStateFilter.cs
│ │ │ ├── IBackgroundJobStateChanger.cs
│ │ │ ├── IElectStateFilter.cs
│ │ │ ├── IState.cs
│ │ │ ├── IStateHandler.cs
│ │ │ ├── IStateMachine.cs
│ │ │ ├── ProcessingState.cs
│ │ │ ├── ScheduledState.cs
│ │ │ ├── StateChangeContext.cs
│ │ │ ├── StateHandlerCollection.cs
│ │ │ ├── StateMachine.cs
│ │ │ └── SucceededState.cs
│ │ ├── StatisticsHistoryAttribute.cs
│ │ ├── Storage/
│ │ │ ├── BackgroundServerGoneException.cs
│ │ │ ├── DistributedLockTimeoutException.cs
│ │ │ ├── IFetchedJob.cs
│ │ │ ├── IMonitoringApi.cs
│ │ │ ├── IStorageConnection.cs
│ │ │ ├── IWriteOnlyTransaction.cs
│ │ │ ├── InvocationData.cs
│ │ │ ├── JobData.cs
│ │ │ ├── JobStorageConnection.cs
│ │ │ ├── JobStorageFeatures.cs
│ │ │ ├── JobStorageMonitor.cs
│ │ │ ├── JobStorageTransaction.cs
│ │ │ ├── Monitoring/
│ │ │ │ ├── AwaitingJobDto.cs
│ │ │ │ ├── DeletedJobDto.cs
│ │ │ │ ├── EnqueuedJobDto.cs
│ │ │ │ ├── FailedJobDto.cs
│ │ │ │ ├── FetchedJobDto.cs
│ │ │ │ ├── JobDetailsDto.cs
│ │ │ │ ├── JobList.cs
│ │ │ │ ├── ProcessingJobDto.cs
│ │ │ │ ├── QueueWithTopEnqueuedJobsDto.cs
│ │ │ │ ├── ScheduledJobDto.cs
│ │ │ │ ├── ServerDto.cs
│ │ │ │ ├── StateHistoryDto.cs
│ │ │ │ ├── StatisticsDto.cs
│ │ │ │ └── SucceededJobDto.cs
│ │ │ ├── RecurringJobDto.cs
│ │ │ ├── StateData.cs
│ │ │ └── StorageConnectionExtensions.cs
│ │ └── packages.lock.json
│ ├── Hangfire.NetCore/
│ │ ├── AspNetCore/
│ │ │ ├── AspNetCoreJobActivator.cs
│ │ │ ├── AspNetCoreJobActivatorScope.cs
│ │ │ ├── AspNetCoreLog.cs
│ │ │ └── AspNetCoreLogProvider.cs
│ │ ├── BackgroundJobServerHostedService.cs
│ │ ├── BackgroundProcessingServerHostedService.cs
│ │ ├── DefaultClientManagerFactory.cs
│ │ ├── Hangfire.NetCore.csproj
│ │ ├── HangfireServiceCollectionExtensions.cs
│ │ ├── IBackgroundJobClientFactory.cs
│ │ ├── IRecurringJobManagerFactory.cs
│ │ └── packages.lock.json
│ ├── Hangfire.SqlServer/
│ │ ├── Constants.cs
│ │ ├── CountersAggregator.cs
│ │ ├── DbCommandExtensions.cs
│ │ ├── DefaultInstall.sql
│ │ ├── DefaultInstall.tt
│ │ ├── EnqueuedAndFetchedCountDto.cs
│ │ ├── Entities/
│ │ │ ├── JobParameter.cs
│ │ │ ├── Server.cs
│ │ │ ├── ServerData.cs
│ │ │ ├── SqlHash.cs
│ │ │ ├── SqlJob.cs
│ │ │ └── SqlState.cs
│ │ ├── ExceptionTypeHelper.cs
│ │ ├── ExpirationManager.cs
│ │ ├── Hangfire.SqlServer.csproj
│ │ ├── IPersistentJobQueue.cs
│ │ ├── IPersistentJobQueueMonitoringApi.cs
│ │ ├── IPersistentJobQueueProvider.cs
│ │ ├── Install.sql
│ │ ├── PersistentJobQueueProviderCollection.cs
│ │ ├── Properties/
│ │ │ └── AssemblyInfo.cs
│ │ ├── SqlCommandBatch.cs
│ │ ├── SqlCommandSet.cs
│ │ ├── SqlServerBootstrapperConfigurationExtensions.cs
│ │ ├── SqlServerConnection.cs
│ │ ├── SqlServerDistributedLock.cs
│ │ ├── SqlServerDistributedLockException.cs
│ │ ├── SqlServerHeartbeatProcess.cs
│ │ ├── SqlServerJobQueue.cs
│ │ ├── SqlServerJobQueueMonitoringApi.cs
│ │ ├── SqlServerJobQueueProvider.cs
│ │ ├── SqlServerMonitoringApi.cs
│ │ ├── SqlServerObjectsInstaller.cs
│ │ ├── SqlServerStorage.cs
│ │ ├── SqlServerStorageExtensions.cs
│ │ ├── SqlServerStorageOptions.cs
│ │ ├── SqlServerTimeoutJob.cs
│ │ ├── SqlServerTransactionJob.cs
│ │ ├── SqlServerWriteOnlyTransaction.cs
│ │ ├── TimestampHelper.cs
│ │ └── packages.lock.json
│ ├── Hangfire.SqlServer.Msmq/
│ │ ├── Hangfire.SqlServer.Msmq.csproj
│ │ ├── IMsmqTransaction.cs
│ │ ├── MessageQueueExtensions.cs
│ │ ├── MsmqDtcTransaction.cs
│ │ ├── MsmqExtensions.cs
│ │ ├── MsmqFetchedJob.cs
│ │ ├── MsmqInternalTransaction.cs
│ │ ├── MsmqJobQueue.cs
│ │ ├── MsmqJobQueueMonitoringApi.cs
│ │ ├── MsmqJobQueueProvider.cs
│ │ ├── MsmqSqlServerStorageExtensions.cs
│ │ ├── MsmqTransactionType.cs
│ │ ├── Properties/
│ │ │ └── AssemblyInfo.cs
│ │ └── packages.lock.json
│ └── SharedAssemblyInfo.cs
└── tests/
├── Directory.Build.props
├── Hangfire.Core.Tests/
│ ├── BackgroundJobClientExtensionsFacts.cs
│ ├── BackgroundJobClientFacts.cs
│ ├── BackgroundJobFacts.cs
│ ├── BackgroundJobServerFacts.cs
│ ├── CaptureCultureAttributeFacts.cs
│ ├── Client/
│ │ ├── BackgroundJobFactoryFacts.cs
│ │ ├── ClientExceptionContextFacts.cs
│ │ ├── CoreBackgroundJobFactoryFacts.cs
│ │ ├── CreateContextFacts.cs
│ │ ├── CreatedContextFacts.cs
│ │ └── CreatingContextFacts.cs
│ ├── Common/
│ │ ├── CancellationTokenExtentionsFacts.cs
│ │ ├── JobArgumentFacts.cs
│ │ ├── JobFacts.cs
│ │ ├── JobFilterAttributeFacts.cs
│ │ ├── JobFilterAttributeFilterProviderFacts.cs
│ │ ├── JobFilterCollectionFacts.cs
│ │ ├── JobFilterFacts.cs
│ │ ├── JobFilterProviderCollectionFacts.cs
│ │ ├── JobHelperFacts.cs
│ │ ├── JobLoadExceptionFacts.cs
│ │ ├── MethodInfoExtensionsFacts.cs
│ │ ├── SerializationHelperFacts.cs
│ │ ├── ShallowExceptionHelperFacts.cs
│ │ └── TypeExtensionsFacts.cs
│ ├── ContinuationsSupportAttributeFacts.cs
│ ├── CronFacts.cs
│ ├── Dashboard/
│ │ ├── BatchCommandDispatcherFacts.cs
│ │ ├── CommandDispatcherFacts.cs
│ │ ├── DashboardOptionsFacts.cs
│ │ └── HtmlHelperFacts.cs
│ ├── GlobalConfigurationExtensionsFacts.cs
│ ├── GlobalStateHandlersFacts.cs
│ ├── GlobalTestsConfiguration.cs
│ ├── Hangfire.Core.Tests.csproj
│ ├── Hangfire.Core.Tests.csproj.DotSettings
│ ├── JobActivatorFacts.cs
│ ├── JobCancellationTokenFacts.cs
│ ├── JobParameterInjectionFilterFacts.cs
│ ├── JobStorageFacts.cs
│ ├── LatencyTimeoutAttributeFacts.cs
│ ├── Mocks/
│ │ ├── ApplyStateContextMock.cs
│ │ ├── BackgroundJobMock.cs
│ │ ├── BackgroundProcessContextMock.cs
│ │ ├── CreateContextMock.cs
│ │ ├── ElectStateContextMock.cs
│ │ ├── PerformContextMock.cs
│ │ └── StateChangeContextMock.cs
│ ├── Obsolete/
│ │ └── ServerWatchdogOptionsFacts.cs
│ ├── PreserveCultureAttributeFacts.cs
│ ├── Processing/
│ │ └── TaskExtensionsFacts.cs
│ ├── Profiling/
│ │ └── ProfilerFacts.cs
│ ├── QueueAttributeFacts.cs
│ ├── RecurringJobEntityFacts.cs
│ ├── RecurringJobManagerFacts.cs
│ ├── RecurringJobOptionsFacts.cs
│ ├── RetryAttributeFacts.cs
│ ├── Server/
│ │ ├── BackgroundJobPerformerFacts.cs
│ │ ├── BackgroundJobServerOptionsFacts.cs
│ │ ├── BackgroundProcessContextFacts.cs
│ │ ├── BackgroundProcessingServerFacts.cs
│ │ ├── CoreBackgroundJobPerformerFacts.cs
│ │ ├── DelayedJobSchedulerFacts.cs
│ │ ├── PerformContextFacts.cs
│ │ ├── RecurringJobSchedulerFacts.cs
│ │ ├── ServerJobCancellationTokenFacts.cs
│ │ ├── ServerJobCancellationWatcherFacts.cs
│ │ ├── ServerWatchdogFacts.cs
│ │ └── WorkerFacts.cs
│ ├── States/
│ │ ├── ApplyStateContextFacts.cs
│ │ ├── AwaitingStateFacts.cs
│ │ ├── AwaitingStateHandlerFacts.cs
│ │ ├── BackgroundJobStateChangerFacts.cs
│ │ ├── CoreStateMachineFacts.cs
│ │ ├── DeletedStateFacts.cs
│ │ ├── DeletedStateHandlerFacts.cs
│ │ ├── ElectStateContextFacts.cs
│ │ ├── EnqueuedStateFacts.cs
│ │ ├── EnqueuedStateHandlerFacts.cs
│ │ ├── EnqueuedStateValidationFacts.cs
│ │ ├── FailedStateFacts.cs
│ │ ├── ProcessingStateFacts.cs
│ │ ├── ScheduledStateFacts.cs
│ │ ├── ScheduledStateHandlerFacts.cs
│ │ ├── StateChangeContextFacts.cs
│ │ ├── StateHandlerCollectionFacts.cs
│ │ ├── StateMachineFacts.cs
│ │ ├── SucceededStateFacts.cs
│ │ └── SucceededStateHandlerFacts.cs
│ ├── StatisticsHistoryAttributeFacts.cs
│ ├── Storage/
│ │ ├── InvocationDataFacts.cs
│ │ ├── MonitoringTypeFacts.cs
│ │ └── StorageConnectionExtensionsFacts.cs
│ ├── Stubs/
│ │ ├── DashboardContextStub.cs
│ │ ├── DashboardResponseStub.cs
│ │ └── JobStorageStub.cs
│ ├── Utils/
│ │ ├── CleanSerializerSettingsAttribute.cs
│ │ ├── CultureHelper.cs
│ │ ├── DataCompatibilityRangeFactAttribute.cs
│ │ ├── DataCompatibilityRangeFactDiscoverer.cs
│ │ ├── DataCompatibilityRangeTestCase.cs
│ │ ├── DataCompatibilityRangeTestCaseRunner.cs
│ │ ├── DataCompatibilityRangeTestRunner.cs
│ │ ├── DataCompatibilityRangeTheoryAttribute.cs
│ │ ├── DataCompatibilityRangeTheoryDiscoverer.cs
│ │ ├── DataCompatibilityRangeTheoryTestCase.cs
│ │ ├── DataCompatibilityRangeTheoryTestCaseRunner.cs
│ │ ├── GlobalLockAttribute.cs
│ │ ├── PlatformHelper.cs
│ │ ├── SequenceAttribute.cs
│ │ ├── SerializerSettingsHelper.cs
│ │ └── StaticLockAttribute.cs
│ └── packages.lock.json
├── Hangfire.SqlServer.Msmq.Tests/
│ ├── Hangfire.SqlServer.Msmq.Tests.csproj
│ ├── MessageQueueExtensionsFacts.cs
│ ├── MsmqJobQueueFacts.cs
│ ├── MsmqJobQueueMonitoringApiFacts.cs
│ ├── MsmqJobQueueProviderFacts.cs
│ ├── MsmqSqlServerStorageExtensionsFacts.cs
│ ├── Utils/
│ │ ├── CleanMsmqQueueAttribute.cs
│ │ └── MsmqUtils.cs
│ └── packages.lock.json
└── Hangfire.SqlServer.Tests/
├── CountersAggregatorFacts.cs
├── ExpirationManagerFacts.cs
├── GlobalTestsConfiguration.cs
├── Hangfire.SqlServer.Tests.csproj
├── PersistentJobQueueProviderCollectionFacts.cs
├── SqlServerConnectionFacts.cs
├── SqlServerDistributedLockFacts.cs
├── SqlServerJobQueueFacts.cs
├── SqlServerMonitoringApiFacts.cs
├── SqlServerStorageFacts.cs
├── SqlServerTimeoutJobFacts.cs
├── SqlServerTransactionJobFacts.cs
├── SqlServerWriteOnlyTransactionFacts.cs
├── StorageOptionsFacts.cs
├── Utils/
│ ├── CleanDatabaseAttribute.cs
│ ├── CleanSerializerSettingsAttribute.cs
│ ├── ConnectionUtils.cs
│ └── SerializerSettingsHelper.cs
└── packages.lock.json
================================================
FILE CONTENTS
================================================
================================================
FILE: .editorconfig
================================================
root = true
[*.cs,*.ps1]
indent_style = space
indent_size = 4
================================================
FILE: .gitattributes
================================================
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp text
*.sln merge=union text eol=crlf
*.csproj merge=union text eol=crlf
*.vbproj merge=union text eol=crlf
*.fsproj merge=union text eol=crlf
*.dbproj merge=union text eol=crlf
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
# Source code
*.cshtml text
*.css text
*.xml text
*.bat text
*.ps1 text
*.nuspec text
*.js text
*.json text
*.sql text
# Documentation
*.md text
*.txt text
*.manifest text
COPYING text
COPYING.LESSER text
# Configs
*.config text
.editorconfig text
.gitattributes text
.gitignore text
*.yml text
*.DotSettings text
================================================
FILE: .gitignore
================================================
#################
## IDEA Rider
#################
.idea
.idea.*
#################
## Eclipse
#################
*.pydevproject
.project
.metadata
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath
# External tool builders
.externalToolBuilders/
# Locally stored "Eclipse launch configurations"
*.launch
# CDT-specific
.cproject
# PDT-specific
.buildpath
#################
## Visual Studio
#################
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
packages/
# Build results
[Bb]uild/
[Dd]ebug/
[Rr]elease/
x64/
[Bb]in/
[Oo]bj/
# Visual Studio 2015 cache/options directory
.vs/
# dotnet
artifacts/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
coverage.xml
*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile
# Visual Studio profiler
*.psess
*.vsp
*.vspx
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# NCrunch
*.ncrunch*
.*crunch*.local.xml
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.Publish.xml
*.pubxml
# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
#packages/
# Windows Azure Build Output
csx
*.build.csdef
# Windows Store app package directory
AppPackages/
# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# SQL Server files
App_Data/*.mdf
App_Data/*.ldf
#############
## Windows detritus
#############
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Mac crap
.DS_Store
#############
## Python
#############
*.py[co]
# Packages
*.egg
*.egg-info
dist/
eggs/
parts/
var/
sdist/
develop-eggs/
.installed.cfg
# Installer logs
pip-log.txt
# Unit test / coverage reports
.coverage
.tox
#Translations
*.mo
#Mr Developer
.mr.developer.cfg
#Sphinx Built Docs
docs/_build
#Jekyll site builds
_site
*.userprefs
cov-int/
================================================
FILE: .nuget/packages.config
================================================
================================================
FILE: .nuget/packages.lock.json
================================================
{
"version": 1,
"dependencies": {
"Any,Version=v0.0": {
"Hangfire.Build": {
"type": "Direct",
"requested": "[0.5.0, 0.5.0]",
"resolved": "0.5.0",
"contentHash": "4yRCdMaDr6cyFRmCvpFO8kBMV57KPOofugaHOsjkDEDw+G/BCGWOdrpXfkAeTEtZBPUv2jS0PYmVNK5680KxXQ=="
},
"ILRepack": {
"type": "Direct",
"requested": "[2.0.27, 2.0.27]",
"resolved": "2.0.27",
"contentHash": "N5nhVwlgU2ipeonLBVuv1HpsIclJI/5QujuLeo3BW7irD2KnSFXkHa5FmXwzdCkB36D0XGOxNMxh99P7kjgU2A=="
},
"psake": {
"type": "Direct",
"requested": "[4.4.1, 4.4.1]",
"resolved": "4.4.1",
"contentHash": "Hn5kdGPEoapi+wAAjaGjKEZVnuYp7fUrPK3IivLYG6Bn4adhd8l+KXXPMEmte41RmrLvfV7XGZa9KsSTc0gjDA=="
},
"RazorGenerator.MsBuild": {
"type": "Direct",
"requested": "[2.5.0, 2.5.0]",
"resolved": "2.5.0",
"contentHash": "yOu2KEjDFvE20b+YK/+Ovf4czUHWH2DlBB9lIKDXdBjcMh3PXrPJTxPzi468XrFvE1dVEiWu+pGNkVFE9+VpMA=="
}
}
}
}
================================================
FILE: CONTRIBUTING.md
================================================
# File an Issue
If you have a question rather than an issue, please post it to the [Hangfire Stack
Overflow tag](https://stackoverflow.com/questions/tagged/hangfire). For non-security related bugs please log a new issue:
1. Search the [issue tracker](https://github.com/HangfireIO/Hangfire/issues) for similar issues.
2. Specify the **version** of `Hangfire.Core` package in which the bug was occurred.
3. Specify the **storage** package (e.g. `Hangfire.SqlServer`) you are using and its exact version.
4. Specify the **configuration** logic for Hangfire.
5. Specify all the custom job **filters** if any, and post their source code.
6. Describe the problem and your environment in detail (i.e. what happened and what you expected would happen).
ProTip!
* Include screenshots from Dashboard UI, to allow us to see the same
problem. You can simply use Print Screen , then Ctrl + V directly
into the comment window on GitHub.
* Include log messages, written by Hangfire when a problem occurred. Don't forget to tell your logger to dump all the exception details.
* Include stack trace dump, if your background processing is stuck. You can use
[`stdump`](https://github.com/odinserj/stdump) utility to get them either from a minidump file,
or from a running process without interrupting it: `stdump w3wp > stacktrace.txt`
Hints
* Use [syntax highlighting](https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting) for your C#, SQL, etc. code blocks.
* Use [fenced code blocks](https://help.github.com/articles/creating-and-highlighting-code-blocks/#fenced-code-blocks) for exception details.
# Reporting security issues
In order to give the community time to respond and upgrade we strongly urge you report all security issues privately. Please email us at [security@hangfire.io](mailto:security@hangfire.io) with details and we will respond ASAP. Security issues always take precedence over bug fixes and feature work. We can and do mark releases as "urgent" if they contain serious security fixes.
================================================
FILE: COPYING
================================================
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
================================================
FILE: COPYING.LESSER
================================================
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
================================================
FILE: Directory.Build.props
================================================
true
true
true
================================================
FILE: Hangfire.sln
================================================
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.28307.136
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsoleSample", "samples\ConsoleSample\ConsoleSample.csproj", "{C02BB718-2AE4-434C-8668-C894FF663FCE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hangfire.Core", "src\Hangfire.Core\Hangfire.Core.csproj", "{C995EA9E-56EE-4951-8260-D94260A7F4C2}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{119DA7FA-B94C-4B63-AEC9-428EF834E0D8}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hangfire.SqlServer", "src\Hangfire.SqlServer\Hangfire.SqlServer.csproj", "{A523C0E3-097D-4869-977F-15A717EA3E83}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{766BE831-F758-46BC-AFD3-BBEEFE0F686F}"
ProjectSection(SolutionItems) = preProject
tests\Directory.Build.props = tests\Directory.Build.props
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{15E186DF-8918-44F1-9285-9756EDAECA5D}"
ProjectSection(SolutionItems) = preProject
appveyor.yml = appveyor.yml
psake-project.ps1 = psake-project.ps1
src\SharedAssemblyInfo.cs = src\SharedAssemblyInfo.cs
src\Directory.Build.props = src\Directory.Build.props
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "nuspecs", "nuspecs", "{5E687025-A525-4534-8869-CB685C7B11C4}"
ProjectSection(SolutionItems) = preProject
nuspecs\Hangfire.AspNetCore.nuspec = nuspecs\Hangfire.AspNetCore.nuspec
nuspecs\Hangfire.Core.nuspec = nuspecs\Hangfire.Core.nuspec
nuspecs\Hangfire.NetCore.nuspec = nuspecs\Hangfire.NetCore.nuspec
nuspecs\Hangfire.nuspec = nuspecs\Hangfire.nuspec
nuspecs\Hangfire.SqlServer.MSMQ.nuspec = nuspecs\Hangfire.SqlServer.MSMQ.nuspec
nuspecs\Hangfire.SqlServer.nuspec = nuspecs\Hangfire.SqlServer.nuspec
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "content", "content", "{37E2BF00-C473-48A5-B2A7-5A3DE0910FCF}"
ProjectSection(SolutionItems) = preProject
content\readme.txt = content\readme.txt
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hangfire.Core.Tests", "tests\Hangfire.Core.Tests\Hangfire.Core.Tests.csproj", "{E13C3543-39A3-475C-BB43-2E311E634843}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hangfire.SqlServer.Tests", "tests\Hangfire.SqlServer.Tests\Hangfire.SqlServer.Tests.csproj", "{6DFFA275-C483-4501-823A-741AC9EC0846}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hangfire.SqlServer.Msmq", "src\Hangfire.SqlServer.Msmq\Hangfire.SqlServer.Msmq.csproj", "{762BE479-0AEC-47E0-8F9C-34FA54641749}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hangfire.SqlServer.Msmq.Tests", "tests\Hangfire.SqlServer.Msmq.Tests\Hangfire.SqlServer.Msmq.Tests.csproj", "{DBC6BC12-06AD-4597-9E0F-B77BE754FA2C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{F710C9CF-69F9-4373-9B74-ABB185BF985B}"
ProjectSection(SolutionItems) = preProject
.nuget\packages.config = .nuget\packages.config
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Hangfire.AspNetCore", "src\Hangfire.AspNetCore\Hangfire.AspNetCore.csproj", "{73AFEBE0-9B11-44F6-A69C-8A51538CF18E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetCoreSample", "samples\NetCoreSample\NetCoreSample.csproj", "{FA751692-20C8-4986-8164-D21F505B2172}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hangfire.NetCore", "src\Hangfire.NetCore\Hangfire.NetCore.csproj", "{AA8E3A67-8731-423A-9B69-EE44EC6B8E1A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C02BB718-2AE4-434C-8668-C894FF663FCE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C02BB718-2AE4-434C-8668-C894FF663FCE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C02BB718-2AE4-434C-8668-C894FF663FCE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C02BB718-2AE4-434C-8668-C894FF663FCE}.Release|Any CPU.Build.0 = Release|Any CPU
{C995EA9E-56EE-4951-8260-D94260A7F4C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C995EA9E-56EE-4951-8260-D94260A7F4C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C995EA9E-56EE-4951-8260-D94260A7F4C2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C995EA9E-56EE-4951-8260-D94260A7F4C2}.Release|Any CPU.Build.0 = Release|Any CPU
{A523C0E3-097D-4869-977F-15A717EA3E83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A523C0E3-097D-4869-977F-15A717EA3E83}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A523C0E3-097D-4869-977F-15A717EA3E83}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A523C0E3-097D-4869-977F-15A717EA3E83}.Release|Any CPU.Build.0 = Release|Any CPU
{E13C3543-39A3-475C-BB43-2E311E634843}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E13C3543-39A3-475C-BB43-2E311E634843}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E13C3543-39A3-475C-BB43-2E311E634843}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E13C3543-39A3-475C-BB43-2E311E634843}.Release|Any CPU.Build.0 = Release|Any CPU
{6DFFA275-C483-4501-823A-741AC9EC0846}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6DFFA275-C483-4501-823A-741AC9EC0846}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6DFFA275-C483-4501-823A-741AC9EC0846}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6DFFA275-C483-4501-823A-741AC9EC0846}.Release|Any CPU.Build.0 = Release|Any CPU
{762BE479-0AEC-47E0-8F9C-34FA54641749}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{762BE479-0AEC-47E0-8F9C-34FA54641749}.Debug|Any CPU.Build.0 = Debug|Any CPU
{762BE479-0AEC-47E0-8F9C-34FA54641749}.Release|Any CPU.ActiveCfg = Release|Any CPU
{762BE479-0AEC-47E0-8F9C-34FA54641749}.Release|Any CPU.Build.0 = Release|Any CPU
{DBC6BC12-06AD-4597-9E0F-B77BE754FA2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DBC6BC12-06AD-4597-9E0F-B77BE754FA2C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DBC6BC12-06AD-4597-9E0F-B77BE754FA2C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DBC6BC12-06AD-4597-9E0F-B77BE754FA2C}.Release|Any CPU.Build.0 = Release|Any CPU
{73AFEBE0-9B11-44F6-A69C-8A51538CF18E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{73AFEBE0-9B11-44F6-A69C-8A51538CF18E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{73AFEBE0-9B11-44F6-A69C-8A51538CF18E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{73AFEBE0-9B11-44F6-A69C-8A51538CF18E}.Release|Any CPU.Build.0 = Release|Any CPU
{FA751692-20C8-4986-8164-D21F505B2172}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FA751692-20C8-4986-8164-D21F505B2172}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FA751692-20C8-4986-8164-D21F505B2172}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FA751692-20C8-4986-8164-D21F505B2172}.Release|Any CPU.Build.0 = Release|Any CPU
{AA8E3A67-8731-423A-9B69-EE44EC6B8E1A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AA8E3A67-8731-423A-9B69-EE44EC6B8E1A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AA8E3A67-8731-423A-9B69-EE44EC6B8E1A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AA8E3A67-8731-423A-9B69-EE44EC6B8E1A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{C02BB718-2AE4-434C-8668-C894FF663FCE} = {119DA7FA-B94C-4B63-AEC9-428EF834E0D8}
{E13C3543-39A3-475C-BB43-2E311E634843} = {766BE831-F758-46BC-AFD3-BBEEFE0F686F}
{6DFFA275-C483-4501-823A-741AC9EC0846} = {766BE831-F758-46BC-AFD3-BBEEFE0F686F}
{DBC6BC12-06AD-4597-9E0F-B77BE754FA2C} = {766BE831-F758-46BC-AFD3-BBEEFE0F686F}
{FA751692-20C8-4986-8164-D21F505B2172} = {119DA7FA-B94C-4B63-AEC9-428EF834E0D8}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7597454C-C272-4016-87A2-CF1196347355}
EndGlobalSection
EndGlobal
================================================
FILE: Hangfire.sln.DotSettings
================================================
True
True
True
True
True
True
True
True
True
True
<data><IncludeFilters /><ExcludeFilters><Filter ModuleMask="Hangfire.Core.Tests" ModuleVersionMask="*" ClassMask="*" FunctionMask="*" IsEnabled="True" /><Filter ModuleMask="Hangfire.SqlServer.Tests" ModuleVersionMask="*" ClassMask="*" FunctionMask="*" IsEnabled="True" /></ExcludeFilters></data>
<data />
True
True
True
================================================
FILE: LICENSE.md
================================================
License
========
Copyright © 2013-2026 Hangfire OÜ.
Hangfire software is an open-source software that is multi-licensed under the terms of the licenses listed in this file. Recipients may choose the terms under which they are want to use or distribute the software, when all the preconditions of a chosen license are satisfied.
LGPL v3 License
---------------
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Please see COPYING.LESSER and COPYING files for details.
Commercial License
------------------
Subject to the purchase of a corresponding subscription (please see https://www.hangfire.io/pricing/), you may distribute Hangfire under the terms of commercial license, that allows you to distribute private forks and modifications. Please see LICENSE_STANDARD and LICENSE_ROYALTYFREE files for details.
================================================
FILE: LICENSE_ROYALTYFREE
================================================
Royalty-free End-user License Agreement
=======================================
THIS LICENSE AGREEMENT DESCRIBES YOUR RIGHTS WITH RESPECT TO THE SOFTWARE AND ITS COMPONENTS.
1. OWNERSHIP, LICENSE GRANT
This is a license agreement and not an agreement for sale. We reserve ownership of all intellectual property rights inherent in or relating to the Software, which include, but are not limited to, all copyright, patent rights, all rights in relation to registered and unregistered trademarks (including service marks), confidential information (including trade secrets and know-how) and all rights other than those expressly granted by this License Agreement.
Subject to the payment of the fee required and subject to the terms and conditions of this License Agreement, We grant to You a revocable, non- transferable and non-exclusive license (i) for Designated User(s) (as defined below) within Your organization to install and use the Software on any workstations used exclusively by such Designated User and (ii) for You to install and use the Software in connection with unlimited domains and sub-domains on unlimited servers, solely in connection with distribution of the Software in accordance with sections 3 and 4 below. This license is not sublicensable except as explicitly set forth herein. "Designated User(s)" shall mean Your employee(s) acting within the scope of their employment or Your consultant(s) or contractor(s) acting within the scope of the services they provide for You or on Your behalf for whom You have purchased a license to use the Software.
2. PERMITTED USES, SOURCE CODE, MODIFICATIONS
We provide You with source code so that You can create Modifications of the original Software, where Modification means: a) any addition to or deletion from the contents of a file included in the original Software or previous Modifications created by You, or b) any new file that contains any part of the original Software or previous Modifications. While You retain all rights to any original work authored by You as part of the Modifications, We continue to own all copyright and other intellectual property rights in the Software.
3. DISTRIBUTION
You may distribute the Software in any applications, frameworks, or elements (collectively referred to as an "Application" or "Applications") that you develop using the Software in accordance with this License Agreement, provided that such distribution does not violate the restrictions set forth in section 4 of this License Agreement. You must not remove, obscure or interfere with any copyright, acknowledgment, attribution, trademark, warning or disclaimer statement affixed to, incorporated in or otherwise applied in connection with the Software.
You are required to ensure that the Software is not reused by or with any applications other than those with which You distribute it as permitted herein. For example, if You install the Software on a customer's server, that customer is not permitted to use the Software independently of Your application, and must be informed as such.
You will not owe Us any royalties for Your distribution of the Software in accordance with this License Agreement.
4. PROHIBITED USES
You may not, without Our prior written consent, redistribute the Software or Modifications other than by including the Software or a portion thereof within Your own product, which must have substantially different functionality than the Software or Modifications and must not allow any third party to use the Software or Modifications, or any portions thereof, for software development or application development purposes. You are explicitly not allowed to redistribute the Software or Modifications as part of any product that can be described as a development toolkit or library, an application builder, a website builder or any product that is intended for use by software, application, or website developers or designers. You may not change or remove the copyright notice from any of the files included in the Software or Modifications.
You may redistribute the Software as part of Your own products.
UNDER NO CIRCUMSTANCES MAY YOU USE THE SOFTWARE FOR A PRODUCT THAT IS INTENDED FOR SOFTWARE OR APPLICATION DEVELOPMENT PURPOSES.
5. TERMINATION
This License Agreement and Your right to use the Software and Modifications will terminate immediately without notice if You fail to comply with the terms and conditions of this License Agreement. Upon termination, You agree to immediately cease using and destroy the Software or Modifications, including all accompanying documents. The provisions of sections 4, 5, 6, 7, 8, 9, 10 and 11 will survive any termination of this License Agreement.
6. DISCLAIMER OF WARRANTIES
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, WE AND OUR SUPPLIERS DISCLAIM ALL WARRANTIES AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE. WE DO NOT GUARANTEE THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE, AND YOU ACKNOWLEDGE THAT IT IS NOT TECHNICALLY PRACTICABLE FOR US TO DO SO.
7. LIMITATION OF LIABILITIES
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL WE OR OUR SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION OR ANY OTHER PECUNIARY LAW) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF WE HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IN ANY CASE, OUR ENTIRE LIABILITY UNDER ANY PROVISION OF THIS LICENSE AGREEMENT SHALL BE LIMITED TO THE AMOUNT ACTUALLY PAID BY YOU FOR THE SOFTWARE.
8. VERIFICATION
We or a certified auditor acting on Our behalf, may, upon its reasonable request and at its expense, audit You with respect to the use of the Software. Such audit may be conducted by mail, electronic means or through an in-person visit to Your place of business. Any such in-person audit shall be conducted during regular business hours at Your facilities and shall not unreasonably interfere with Your business activities. We shall not remove, copy, or redistribute any electronic material during the course of an audit. If an audit reveals that You are using the Software in a way that is in material violation of the terms of the License Agreement, then You shall pay Our reasonable costs of conducting the audit. In the case of a material violation, You agree to pay Us any amounts owing that are attributable to the unauthorized use. In the alternative, We reserve the right, at Our sole option, to terminate the licenses for the Software.
9. THIRD PARTY SOFTWARE
The Software may contain third party open source software which requires notices and/or additional terms and conditions. Such required third party software notices and/or additional terms and conditions are located in the NOTICES file accompanying the Software distribution (also available at https://www.hangfire.io/licensing/third-party.html), and are made a part of and incorporated by reference into this Agreement. By accepting this Agreement, you are also accepting the additional terms and conditions, if any, set forth therein.
10. PAYMENT AND TAXES
If credit has been extended to You by Us, all payments under this License Agreement are due within thirty (30) days of the date We mail an invoice to You. If We have not extended credit to You, You shall be required to make payment concurrent with the delivery of the Software by Us. All amounts payable are gross amounts but exclusive of any value added tax, use tax, sales tax or similar tax. You shall be entitled to withhold from payments any applicable withholding taxes and comply with all applicable tax and employment legislation. Each party shall pay all taxes (including, but not limited to, taxes based upon its income) or levies imposed on it under applicable laws, regulations and tax treaties as a result of this Agreement and any payments made hereunder (including those required to be withheld or deducted from payments). Each party shall furnish evidence of such paid taxes as is sufficient to enable the other party to obtain any credits available to it, including original withholding tax certificates.
11. MISCELLANEOUS
The license granted herein applies only to the version of the Software available when purchased in connection with the terms of this License Agreement. Any previous or subsequent license granted to You for use of the Software shall be governed by the terms and conditions of the agreement entered in connection with purchase of that version of the Software. You agree that you will comply with all applicable laws and regulations with respect to the Software, including without limitation all export and re-export control laws and regulations.
While redistributing the Software or Modifications thereof, You may choose to offer acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License Agreement. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on Our behalf. You agree to indemnify, defend, and hold Us harmless from and against any liability incurred by, or claims asserted against, Us (i) by reason of Your accepting any such support, warranty, indemnity or additional liability; or (ii) arising out of the use, reproduction or distribution of Your Application, except to the extent such claim is solely based on the inclusion of the Software therein.
You agree to be identified as a customer of ours and You agree that We may refer to You by name, trade name and trademark, if applicable, and may briefly describe Your business in our marketing materials and web site.
You may not assign this License Agreement without Our prior written consent, which will not be unreasonably withheld. This License Agreement will inure to the benefit of Our successors and assigns.
You acknowledge that this License Agreement is complete and is the exclusive representation of our agreement. No oral or written information given by Us or on our behalf shall create a warranty or collateral contract, or in any way increase the scope of this License Agreement in any way, and You may not rely on any such oral or written information. No term or condition contained in any purchase order shall apply unless expressly accepted by Us in writing.
There are no implied licenses or other implied rights granted under this License Agreement, and all rights, save for those expressly granted hereunder, shall remain with Us and our licensors. In addition, no licenses or immunities are granted to the combination of the Software and/or Modifications, as applicable, with any other software or hardware not delivered by Us to You under this License Agreement.
If any provision in this License Agreement shall be determined to be invalid, such provision shall be deemed omitted; the remainder of this License Agreement shall continue in full force and effect. If any remedy provided is determined to have failed for its essential purpose, all limitations of liability and exclusions of damages set forth in this License Agreement shall remain in effect.
This License Agreement may be modified only by a written instrument signed by an authorized representative of each party.
This License Agreement is governed by the law of the State of Oregon, United States (notwithstanding conflicts of laws provisions), and all parties irrevocably submit to the jurisdiction of the courts of the State of Oregon and further agree to commence any litigation which may arise hereunder in the state or federal courts located in the judicial district of Multnomah County, Oregon, US.
If the Software or any related documentation is licensed to the U.S. government or any agency thereof, it will be deemed to be "commercial computer software" or "commercial computer software documentation", pursuant to DFAR Section 227.7202 and FAR Section 12.212. Any use of the Software or related documentation by the U.S. government will be governed solely by the terms of this License Agreement.
================================================
FILE: LICENSE_STANDARD
================================================
Standard End-user License Agreement
===================================
THIS LICENSE AGREEMENT DESCRIBES YOUR RIGHTS WITH RESPECT TO THE SOFTWARE AND ITS COMPONENTS.
1. OWNERSHIP, LICENSE GRANT
This is a license agreement and not an agreement for sale. We reserve ownership of all intellectual property rights inherent in or relating to the Software, which include, but are not limited to, all copyright, patent rights, all rights in relation to registered and unregistered trademarks (including service marks), confidential information (including trade secrets and know-how) and all rights other than those expressly granted by this License Agreement.
Subject to the payment of the fee required and subject to the terms and conditions of this License Agreement, We grant to You a revocable, non- transferable and non-exclusive license (i) for Designated User(s) (as defined below) within Your organization to install and use the Software on any workstations used exclusively by such Designated User and (ii) for You to install and use the Software in connection with unlimited domains and sub-domains on unlimited servers, solely in connection with distribution of the Software in accordance with sections 3 and 4 below. This license is not sublicensable except as explicitly set forth herein. "Designated User(s)" shall mean Your employee(s) acting within the scope of their employment or Your consultant(s) or contractor(s) acting within the scope of the services they provide for You or on Your behalf for whom You have purchased a license to use the Software.
2. PERMITTED USES, SOURCE CODE, MODIFICATIONS
We provide You with source code so that You can create Modifications of the original Software, where Modification means: a) any addition to or deletion from the contents of a file included in the original Software or previous Modifications created by You, or b) any new file that contains any part of the original Software or previous Modifications. While You retain all rights to any original work authored by You as part of the Modifications, We continue to own all copyright and other intellectual property rights in the Software.
3. DISTRIBUTION
You may distribute the Software in any applications, frameworks, or elements (collectively referred to as an "Application" or "Applications") that you develop using the Software in accordance with this License Agreement, provided that such distribution does not violate the restrictions set forth in section 4 of this License Agreement. You must not remove, obscure or interfere with any copyright, acknowledgment, attribution, trademark, warning or disclaimer statement affixed to, incorporated in or otherwise applied in connection with the Software.
You are required to ensure that the Software is not reused by or with any applications other than those with which You distribute it as permitted herein. For example, if You install the Software on a customer's server, that customer is not permitted to use the Software independently of Your application, and must be informed as such.
You will not owe Us any royalties for Your distribution of the Software in accordance with this License Agreement.
4. PROHIBITED USES
You may not, without Our prior written consent, redistribute the Software or Modifications other than by including the Software or a portion thereof within Your own product, which must have substantially different functionality than the Software or Modifications and must not allow any third party to use the Software or Modifications, or any portions thereof, for software development or application development purposes. You are explicitly not allowed to redistribute the Software or Modifications as part of any product that can be described as a development toolkit or library, an application builder, a website builder or any product that is intended for use by software, application, or website developers or designers. You may not change or remove the copyright notice from any of the files included in the Software or Modifications.
You may not redistribute the Software as part of a product, "appliance" or "virtual server". You may not redistribute the Software on any server which is not directly under Your control.
UNDER NO CIRCUMSTANCES MAY YOU USE THE SOFTWARE FOR A PRODUCT THAT IS INTENDED FOR SOFTWARE OR APPLICATION DEVELOPMENT PURPOSES.
5. TERMINATION
This License Agreement and Your right to use the Software and Modifications will terminate immediately without notice if You fail to comply with the terms and conditions of this License Agreement. Upon termination, You agree to immediately cease using and destroy the Software or Modifications, including all accompanying documents. The provisions of sections 4, 5, 6, 7, 8, 9, 10 and 11 will survive any termination of this License Agreement.
6. DISCLAIMER OF WARRANTIES
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, WE AND OUR SUPPLIERS DISCLAIM ALL WARRANTIES AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE. WE DO NOT GUARANTEE THAT THE OPERATION OF THE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE, AND YOU ACKNOWLEDGE THAT IT IS NOT TECHNICALLY PRACTICABLE FOR US TO DO SO.
7. LIMITATION OF LIABILITIES
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL WE OR OUR SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION OR ANY OTHER PECUNIARY LAW) ARISING OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF WE HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. IN ANY CASE, OUR ENTIRE LIABILITY UNDER ANY PROVISION OF THIS LICENSE AGREEMENT SHALL BE LIMITED TO THE AMOUNT ACTUALLY PAID BY YOU FOR THE SOFTWARE.
8. VERIFICATION
We or a certified auditor acting on Our behalf, may, upon its reasonable request and at its expense, audit You with respect to the use of the Software. Such audit may be conducted by mail, electronic means or through an in-person visit to Your place of business. Any such in-person audit shall be conducted during regular business hours at Your facilities and shall not unreasonably interfere with Your business activities. We shall not remove, copy, or redistribute any electronic material during the course of an audit. If an audit reveals that You are using the Software in a way that is in material violation of the terms of the License Agreement, then You shall pay Our reasonable costs of conducting the audit. In the case of a material violation, You agree to pay Us any amounts owing that are attributable to the unauthorized use. In the alternative, We reserve the right, at Our sole option, to terminate the licenses for the Software.
9. THIRD PARTY SOFTWARE
The Software may contain third party open-source software which requires notices and/or additional terms and conditions. Such required third party software notices and/or additional terms and conditions are located in the NOTICES file accompanying the Software distribution (also available at https://www.hangfire.io/licensing/third-party.html), and are made a part of and incorporated by reference into this Agreement. By accepting this Agreement, you are also accepting the additional terms and conditions, if any, set forth therein.
10. PAYMENT AND TAXES
If credit has been extended to You by Us, all payments under this License Agreement are due within thirty (30) days of the date We mail an invoice to You. If We have not extended credit to You, You shall be required to make payment concurrent with the delivery of the Software by Us. All amounts payable are gross amounts but exclusive of any value added tax, use tax, sales tax or similar tax. You shall be entitled to withhold from payments any applicable withholding taxes and comply with all applicable tax and employment legislation. Each party shall pay all taxes (including, but not limited to, taxes based upon its income) or levies imposed on it under applicable laws, regulations and tax treaties as a result of this Agreement and any payments made hereunder (including those required to be withheld or deducted from payments). Each party shall furnish evidence of such paid taxes as is sufficient to enable the other party to obtain any credits available to it, including original withholding tax certificates.
11. MISCELLANEOUS
The license granted herein applies only to the version of the Software available when purchased in connection with the terms of this License Agreement. Any previous or subsequent license granted to You for use of the Software shall be governed by the terms and conditions of the agreement entered in connection with purchase of that version of the Software. You agree that you will comply with all applicable laws and regulations with respect to the Software, including without limitation all export and re-export control laws and regulations.
While redistributing the Software or Modifications thereof, You may choose to offer acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License Agreement. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on Our behalf. You agree to indemnify, defend, and hold Us harmless from and against any liability incurred by, or claims asserted against, Us (i) by reason of Your accepting any such support, warranty, indemnity or additional liability; or (ii) arising out of the use, reproduction or distribution of Your Application, except to the extent such claim is solely based on the inclusion of the Software therein.
You agree to be identified as a customer of ours and You agree that We may refer to You by name, trade name and trademark, if applicable, and may briefly describe Your business in our marketing materials and web site.
You may not assign this License Agreement without Our prior written consent, which will not be unreasonably withheld. This License Agreement will inure to the benefit of Our successors and assigns.
You acknowledge that this License Agreement is complete and is the exclusive representation of our agreement. No oral or written information given by Us or on our behalf shall create a warranty or collateral contract, or in any way increase the scope of this License Agreement in any way, and You may not rely on any such oral or written information. No term or condition contained in any purchase order shall apply unless expressly accepted by Us in writing.
There are no implied licenses or other implied rights granted under this License Agreement, and all rights, save for those expressly granted hereunder, shall remain with Us and our licensors. In addition, no licenses or immunities are granted to the combination of the Software and/or Modifications, as applicable, with any other software or hardware not delivered by Us to You under this License Agreement.
If any provision in this License Agreement shall be determined to be invalid, such provision shall be deemed omitted; the remainder of this License Agreement shall continue in full force and effect. If any remedy provided is determined to have failed for its essential purpose, all limitations of liability and exclusions of damages set forth in this License Agreement shall remain in effect.
This License Agreement may be modified only by a written instrument signed by an authorized representative of each party.
This License Agreement is governed by the law of the State of Oregon, United States (notwithstanding conflicts of laws provisions), and all parties irrevocably submit to the jurisdiction of the courts of the State of Oregon and further agree to commence any litigation which may arise hereunder in the state or federal courts located in the judicial district of Multnomah County, Oregon, US.
If the Software or any related documentation is licensed to the U.S. government or any agency thereof, it will be deemed to be "commercial computer software" or "commercial computer software documentation", pursuant to DFAR Section 227.7202 and FAR Section 12.212. Any use of the Software or related documentation by the U.S. government will be governed solely by the terms of this License Agreement.
================================================
FILE: NOTICES
================================================
Third Party Software Notices
============================
Hangfire products use software provided by third parties, including open source software. The following copyright statements and licenses apply to various components that are distributed with various Hangfire products. The Hangfire product that includes this file does not necessarily use all of the third party software components referred to below.
Licensee must fully agree and comply with these license terms or must not use these components. The third party license terms apply only to the respective software to which the license pertains, and the third party license terms do not apply to the Hangfire software.
In the event that we accidentally failed to list a required notice, please bring it to our attention by sending an email to .
### [LibLog](https://github.com/damianh/LibLog) (MIT License)
Copyright (C) 2011-2017 Damian Hickey. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
### [NCrontab](https://github.com/atifaziz/NCrontab) (Apache License 2.0)
Copyright (c) 2008 Atif Aziz. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
### Microsoft.Owin (Apache License 2.0)
Part of Katana Project (http://katanaproject.codeplex.com/)
Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
### [Cron Expression Descriptor](https://github.com/bradymholt/cron-expression-descriptor) (MIT License)
Copyright (c) 2013 Brady Holt
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
### [Stack Trace Parser](https://github.com/atifaziz/StackTraceParser) (Apache License 2.0)
Copyright (c) 2011 Atif Aziz. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
### [Stack Trace Formatter](https://github.com/atifaziz/StackTraceFormatter) (Apache License 2.0)
Copyright (c) 2011 Atif Aziz. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
### MoreLINQ - Extensions to LINQ to Objects (Apache License 2.0)
Copyright (c) 2008 Jonathan Skeet. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
### [ExpressionUtil from ASP.NET MVC](https://github.com/aspnet/AspNetWebStack/tree/v3.0/src/Microsoft.Web.Mvc/ExpressionUtil) (Apache License 2.0)
Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you
may not use this file except in compliance with the License. You may
obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied. See the License for the specific language governing permissions
and limitations under the License.
### [Dapper](https://github.com/StackExchange/Dapper) (Apache License 2.0)
Copyright (c) 2017 Stack Exchange, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
### [Bootstrap](https://github.com/twbs/bootstrap) (MIT License)
Copyright 2011-2019 Twitter, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
### [Moment.js](https://github.com/moment/moment) (MIT License)
Copyright (c) JS Foundation and other contributors
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
### [jQuery](https://github.com/jquery/jquery) (MIT License)
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
### MSMQ API Extensions (MIT License)
Copyright (c) 2014 Philip Hoppe
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
### [Chart.js](https://www.chartjs.org/) (MIT License)
The MIT License (MIT)
Copyright (c) 2018 Chart.js Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
### [chartjs-plugin-streaming](https://github.com/nagix/chartjs-plugin-streaming) (MIT License)
Copyright (c) 2021-2019 Akihiko Kusanagi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
================================================
FILE: NuGet.config
================================================
Microsoft;aspnet;dotnetframework;HangfireIO;xunit;jamesnk;kzu;castleproject;psake;ILRepack;davidebbo;StackExchange;Dapper;brady.holt;dwhelan;raboof;damianh;
================================================
FILE: README.md
================================================
Hangfire
=========
[](https://www.hangfire.io) [](https://www.nuget.org/packages?q=hangfire) [](https://www.nuget.org/packages/Hangfire.Core/) [](https://www.gnu.org/licenses/lgpl-3.0.html) [](https://scan.coverity.com/projects/hangfireio-hangfire)
## Build Status
| `main` | `dev`
--- | --- | ---
**AppVeyor** | [](https://ci.appveyor.com/project/HangfireIO/hangfire-525) | [](https://ci.appveyor.com/project/HangfireIO/hangfire-525)
## Overview
Incredibly easy way to perform **fire-and-forget**, **delayed** and **recurring jobs** in **.NET applications**. CPU and I/O intensive, long-running and short-running jobs are supported. No Windows Service / Task Scheduler required. Backed by Redis, SQL Server, SQL Azure and MSMQ.
Hangfire provides a unified programming model to handle background tasks in a **reliable way** and run them on shared hosting, dedicated hosting or in cloud. You can start with a simple setup and grow computational power for background jobs with time for these scenarios:
- mass notifications/newsletters
- batch import from xml, csv or json
- creation of archives
- firing off web hooks
- deleting users
- building different graphs
- image/video processing
- purging temporary files
- recurring automated reports
- database maintenance
- *…and so on*
Hangfire is a .NET alternative to [Resque](https://github.com/resque/resque), [Sidekiq](https://sidekiq.org), [delayed_job](https://github.com/collectiveidea/delayed_job), [Celery](https://www.celeryproject.org).

Installation
-------------
Hangfire is available as a NuGet package. You can install it using the NuGet Package Console window:
```
PM> Install-Package Hangfire
```
After installation, update your existing [OWIN Startup](https://www.asp.net/aspnet/overview/owin-and-katana/owin-startup-class-detection) file with the following lines of code. If you do not have this class in your project or don't know what is it, please read the [Quick start](https://docs.hangfire.io/en/latest/getting-started/index.html) guide to learn about how to install Hangfire.
```csharp
public void Configuration(IAppBuilder app)
{
GlobalConfiguration.Configuration.UseSqlServerStorage("");
app.UseHangfireServer();
app.UseHangfireDashboard();
}
```
Usage
------
This is an incomplete list of features; to see all of them, check the [official site](https://www.hangfire.io) and the [documentation](https://docs.hangfire.io).
[**Fire-and-forget tasks**](https://docs.hangfire.io/en/latest/background-methods/calling-methods-in-background.html)
Dedicated worker pool threads execute queued background jobs as soon as possible, shortening your request's processing time.
```csharp
BackgroundJob.Enqueue(() => Console.WriteLine("Simple!"));
```
[**Delayed tasks**](https://docs.hangfire.io/en/latest/background-methods/calling-methods-with-delay.html)
Scheduled background jobs are executed only after a given amount of time.
```csharp
BackgroundJob.Schedule(() => Console.WriteLine("Reliable!"), TimeSpan.FromDays(7));
```
[**Recurring tasks**](https://docs.hangfire.io/en/latest/background-methods/performing-recurrent-tasks.html)
Recurring jobs have never been simpler; just call the following method to perform any kind of recurring task using the [CRON expressions](https://en.wikipedia.org/wiki/Cron#CRON_expression).
```csharp
RecurringJob.AddOrUpdate(() => Console.WriteLine("Transparent!"), Cron.Daily);
```
**Continuations**
Continuations allow you to define complex workflows by chaining multiple background jobs together.
```csharp
var id = BackgroundJob.Enqueue(() => Console.WriteLine("Hello, "));
BackgroundJob.ContinueWith(id, () => Console.WriteLine("world!"));
```
**Process background tasks inside a web application…**
You can process background tasks in any OWIN-compatible application framework, including [ASP.NET MVC](https://www.asp.net/mvc), [ASP.NET Web API](https://www.asp.net/web-api), [FubuMvc](https://fubu-project.org), [Nancy](https://nancyfx.org), etc. Forget about [AppDomain unloads, Web Garden & Web Farm issues](https://haacked.com/archive/2011/10/16/the-dangers-of-implementing-recurring-background-tasks-in-asp-net.aspx/) – Hangfire is reliable for web applications from scratch, even on shared hosting.
```csharp
app.UseHangfireServer();
```
**… or anywhere else**
In console applications, Windows Service, Azure Worker Role, etc.
```csharp
using (new BackgroundJobServer())
{
Console.WriteLine("Hangfire Server started. Press ENTER to exit...");
Console.ReadLine();
}
```
Questions? Problems?
---------------------
Open-source projects develop more smoothly when discussions are public.
If you have any questions, problems related to Hangfire usage or if you want to discuss new features, please visit the [discussion forum](https://discuss.hangfire.io). You can sign in there using your existing Google or GitHub account, so it's very simple to start using it.
If you've discovered a bug, please report it to the [Hangfire GitHub Issues](https://github.com/HangfireIO/Hangfire/issues?state=open). Detailed reports with stack traces, actual and expected behaviours are welcome.
Related Projects
-----------------
Please see the [Extensions](https://www.hangfire.io/extensions.html) page on the official site.
Building the sources
---------------------
Prerequisites:
* [Razor Generator](https://marketplace.visualstudio.com/items?itemName=DavidEbbo.RazorGenerator): Required if you intend to edit the cshtml files.
* Install the MSMQ service (Microsoft Message Queue Server), if not already installed.
Then, create an environment variable with Variable name `Hangfire_SqlServer_ConnectionStringTemplate` and put your connection string in the Variable value field. Example:
* Variable name: `Hangfire_SqlServer_ConnectionStringTemplate`
* Variable value: `Data Source=.\sqlexpress;Initial Catalog=Hangfire.SqlServer.Tests;Integrated Security=True;`
To build a solution and get assembly files, just run the following command. All build artifacts, including `*.pdb` files, will be placed into the `build` folder. **Before proposing a pull request, please use this command to ensure everything is ok.** Btw, you can execute this command from the Package Manager Console window.
```
build
```
To build NuGet packages as well as an archive file, use the `pack` command as shown below. You can find the result files in the `build` folder.
```
build pack
```
To see the full list of available commands, pass the `-docs` switch:
```
build -docs
```
Hangfire uses [psake](https://github.com/psake/psake) build automation tool. All psake tasks and functions defined in `psake-build.ps1` (for this project) and `psake-common.ps1` (for other Hangfire projects) files. Thanks to the psake project, they are very simple to use and modify!
Razor templates are compiled upon save with the [Razor Generator Visual Studio extension](https://marketplace.visualstudio.com/items?itemName=DavidEbbo.RazorGenerator). You will need this installed if you want to modify the Dashboard UI.
Reporting security issues
--------------------------
In order to give the community time to respond and upgrade we strongly urge you report all security issues privately. Please email us at [security@hangfire.io](mailto:security@hangfire.io) with details and we will respond ASAP. Security issues always take precedence over bug fixes and feature work. We can and do mark releases as "urgent" if they contain serious security fixes.
License
--------
Copyright © 2013-2026 Hangfire OÜ.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see [https://www.gnu.org/licenses/](https://www.gnu.org/licenses).
Legal
------
By submitting a Pull Request, you disavow any rights or claims to any changes submitted to the Hangfire project and assign the copyright of those changes to Hangfire OÜ.
If you cannot or do not want to reassign those rights (your employment contract for your employer may not allow this), you should not submit a PR. Open an issue and someone else can do the work.
This is a legal way of saying "If you submit a PR to us, that code becomes ours". 99.9% of the time that's what you intend anyways; we hope it doesn't scare you away from contributing.
================================================
FILE: SECURITY.md
================================================
# Reporting security issues
In order to give the community time to respond and upgrade we strongly urge you report all security issues privately. Please email us at [security@hangfire.io](security@hangfire.io) with details and we will respond ASAP. Security issues always take precedence over bug fixes and feature work. We can and do mark releases as "urgent" if they contain serious security fixes.
================================================
FILE: appveyor.yml
================================================
# AppVeyor CI build file, https://ci.appveyor.com/project/odinserj/hangfire
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
# Please don't edit it manually, use the `build.bat version` command instead.
version: 1.8.23-build-0{build}
image:
- Visual Studio 2022
- Ubuntu2004
#---------------------------------#
# environment configuration #
#---------------------------------#
# environment variables
environment:
Hangfire_SqlServer_ConnectionStringTemplate: Server=.\SQL2017;Database={0};User Id=sa;Password=Password12!;TrustServerCertificate=True;PoolBlockingPeriod=NeverBlock
SIGNPATH_API_TOKEN:
secure: nvG+jv/K3utFvpHGx/N6Glpv0Wdj0wfBSl8c/tkHbn2AIwGcNe2e4VSOkod7xVpC
COVERITY_TOKEN:
secure: r3yBqxgALySnCK9W6uiStqoadsqYtrWQolzxGDVKF74=
COVERITY_EMAIL:
secure: wf51HXCiUYxuTe+eo3uQOxqyptSLrH4IEqq0958Rmx8=
# enable service required for tests
services:
- mssql2017
#---------------------------------#
# build configuration #
#---------------------------------#
# Installing MSMQ manually to avoid "Cannot initialize 'msmq' service handler" error
before_build:
- cmd: powershell Import-Module ServerManager; Add-WindowsFeature MSMQ; net start msmq
- pwsh: Install-PSResource -Name SignPath -TrustRepository
- sh: nuget locals all -clear
build_script:
- pwsh: IF ($IsWindows -and ($env:APPVEYOR_SCHEDULED_BUILD -or $env:APPVEYOR_REPO_COMMIT_MESSAGE -like "*covscan*")) { .\coverity-scan.ps1 }
- cmd: IF NOT DEFINED APPVEYOR_SCHEDULED_BUILD build.bat sign
- sh: chmod +x build.sh; ./build.sh
#---------------------------------#
# tests configuration #
#---------------------------------#
test: off
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: 'build\**\*.nupkg'
- path: 'build\**\*.zip'
#---------------------------------#
# deployment configuration #
#---------------------------------#
deploy:
- provider: NuGet
api_key:
secure: eMIULftUVSY15jDNaQZYuEVn7MYcKWXiwlEt2x2Cir6qJPw47EfwH2k+BjaAzxUK
on:
appveyor_repo_tag: true
================================================
FILE: build.bat
================================================
@echo off
.nuget\NuGet.exe restore .nuget\packages.config -OutputDirectory packages -UseLockFile -LockedMode -NoCache || exit /b 666
pwsh.exe -NoProfile -ExecutionPolicy RemoteSigned -Command "& {Import-Module '.\packages\psake.*\tools\psake.psm1'; invoke-psake .\psake-project.ps1 %*; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }; }"
exit /B %errorlevel%
================================================
FILE: build.sh
================================================
#!/bin/bash
set -e;
export Hangfire_SqlServer_ConnectionStringTemplate="Server=tcp:127.0.0.1,1433;Database={0};User Id=sa;Password=Password12!;TrustServerCertificate=True;PoolBlockingPeriod=NeverBlock";
if hash dotnet 2>/dev/null;
then
dotnet test -c Release -f netcoreapp3.1 tests/Hangfire.Core.Tests;
dotnet test -c Release -f net6.0 tests/Hangfire.Core.Tests;
if hash sqlcmd 2>/dev/null;
then
dotnet test -c Release -f netcoreapp3.1 tests/Hangfire.SqlServer.Tests;
dotnet test -c Release -f net6.0 tests/Hangfire.SqlServer.Tests;
fi
fi
================================================
FILE: coverity-scan.ps1
================================================
cov-configure --cs
cov-build.exe --dir cov-int build.bat compile
# Compress results.
"Compressing Coverity results..."
$zipEncoderDef = @'
namespace AnalyseCode {
public class PortableFileNameEncoder: System.Text.UTF8Encoding {
public PortableFileNameEncoder() {}
public override byte[] GetBytes(string entry) {
return base.GetBytes(entry.Replace("\\", "/"));
}
}
}
'@
Add-Type -TypeDefinition $zipEncoderDef
[IO.Compression.ZipFile]::CreateFromDirectory(
"$env:APPVEYOR_BUILD_FOLDER\cov-int",
"$env:APPVEYOR_BUILD_FOLDER\$env:APPVEYOR_PROJECT_NAME.zip",
[IO.Compression.CompressionLevel]::Optimal,
$true, # include root directory
(New-Object AnalyseCode.PortableFileNameEncoder))
# Upload results to Coverity server.
"Uploading Coverity results..."
Add-Type -AssemblyName "System.Net.Http"
$client = New-Object Net.Http.HttpClient
$client.Timeout = [TimeSpan]::FromMinutes(20)
$form = New-Object Net.Http.MultipartFormDataContent
# Fill token field.
[Net.Http.HttpContent]$formField =
New-Object Net.Http.StringContent($env:COVERITY_TOKEN)
$form.Add($formField, '"token"')
# Fill email field.
$formField = New-Object Net.Http.StringContent($env:COVERITY_EMAIL)
$form.Add($formField, '"email"')
# Fill file field.
$fs = New-Object IO.FileStream(
"$env:APPVEYOR_BUILD_FOLDER\$env:APPVEYOR_PROJECT_NAME.zip",
[IO.FileMode]::Open,
[IO.FileAccess]::Read)
$formField = New-Object Net.Http.StreamContent($fs)
$form.Add($formField, '"file"', "$env:APPVEYOR_PROJECT_NAME.zip")
# Fill version field.
$formField = New-Object Net.Http.StringContent($env:APPVEYOR_BUILD_VERSION)
$form.Add($formField, '"version"')
# Fill description field.
$formField = New-Object Net.Http.StringContent("AppVeyor scheduled build.")
$form.Add($formField, '"description"')
# Submit form.
$url = "https://scan.coverity.com/builds?project=$env:APPVEYOR_REPO_NAME"
$task = $client.PostAsync($url, $form)
try {
$task.Wait() # throws AggregateException on timeout
} catch [AggregateException] {
throw $_.Exception.InnerException
}
$task.Result
$fs.Close()
================================================
FILE: nuspecs/Hangfire.AspNetCore.nuspec
================================================
Hangfire.AspNetCore
%version%
Hangfire ASP.NET Core Support
Sergey Odinokov
HangfireIO, odinserj
https://www.hangfire.io/
LICENSE.md
icon.png
ASP.NET Core support for Hangfire, a background job framework for .NET applications.
Copyright © 2017-2026 Hangfire OÜ
hangfire aspnetcore
================================================
FILE: nuspecs/Hangfire.Core.nuspec
================================================
Hangfire.Core
%version%
Hangfire Core Components
Sergey Odinokov
HangfireIO, odinserj
https://www.hangfire.io/
LICENSE.md
icon.png
README.md
An easy way to perform fire-and-forget, delayed and recurring tasks in .NET applications. No Windows Service required.
An easy and reliable way to perform fire-and-forget, delayed and recurring, long-running, short-running, CPU or I/O intensive tasks in .NET applications. No Windows Service / Task Scheduler required.
Backed by Redis, SQL Server, SQL Azure or MSMQ. This is a .NET alternative to Sidekiq, Resque and Celery.
https://www.hangfire.io/
Copyright © 2013-2026 Hangfire OÜ
Hangfire OWIN Long-Running Background Fire-And-Forget Delayed Recurring Tasks Jobs Scheduler Threading Queues
================================================
FILE: nuspecs/Hangfire.NetCore.nuspec
================================================
Hangfire.NetCore
%version%
Hangfire .NET Core's Worker Service Support
Sergey Odinokov
HangfireIO, odinserj
https://www.hangfire.io/
LICENSE.md
icon.png
.NET Core's Worker Service host support for Hangfire, a background job framework for .NET applications.
Copyright © 2019-2026 Hangfire OÜ
hangfire netcore
================================================
FILE: nuspecs/Hangfire.SqlServer.MSMQ.nuspec
================================================
Hangfire.SqlServer.MSMQ
%version%
Hangfire MSMQ Queues for SQL Server Storage
Sergey Odinokov
HangfireIO, odinserj
https://www.hangfire.io/
LICENSE.md
icon.png
MSMQ queues support for SQL Server job storage implementation for Hangfire, a background job framework for .NET applications.
Copyright © 2014-2026 Hangfire OÜ
Hangfire SqlServer MSMQ
================================================
FILE: nuspecs/Hangfire.SqlServer.nuspec
================================================
Hangfire.SqlServer
%version%
Hangfire SQL Server Storage
Sergey Odinokov
HangfireIO, odinserj
https://www.hangfire.io/
LICENSE.md
icon.png
SQL Server 2008+ (including Express), SQL Server LocalDB and SQL Azure storage support for Hangfire, a background job framework for .NET applications.
Copyright © 2013-2026 Hangfire OÜ
Hangfire SqlServer SqlAzure LocalDB
================================================
FILE: nuspecs/Hangfire.nuspec
================================================
Hangfire
%version%
Hangfire
Sergey Odinokov
HangfireIO, odinserj
https://www.hangfire.io/
LICENSE.md
icon.png
README.md
An easy way to perform fire-and-forget, delayed and recurring tasks inside ASP.NET applications. No Windows Service required.
An easy and reliable way to perform fire-and-forget, delayed and recurring, long-running, short-running, CPU or I/O intensive tasks inside ASP.NET applications. No Windows Service / Task Scheduler required. Even ASP.NET is not required.
Backed by Redis, SQL Server, SQL Azure or MSMQ. This is a .NET alternative to Sidekiq, Resque and Celery.
https://www.hangfire.io/
Copyright © 2013-2026 Hangfire OÜ
Hangfire AspNet MVC AspNetCore NetCore SqlServer Long-Running Background Fire-And-Forget Delayed Recurring Tasks Jobs Scheduler Threading Queues
================================================
FILE: psake-project.ps1
================================================
Include "packages\Hangfire.Build.0.5.0\tools\psake-common.ps1"
Task Default -Depends Pack
Task Merge -Depends Compile -Description "Run ILRepack /internalize to merge required assemblies." {
Repack-Assembly @("Hangfire.Core", "net451") @("Cronos", "CronExpressionDescriptor", "Microsoft.Owin")
Repack-Assembly @("Hangfire.Core", "net46") @("Cronos", "CronExpressionDescriptor", "Microsoft.Owin")
Repack-Assembly @("Hangfire.SqlServer", "net451") @("Dapper")
Repack-Assembly @("Hangfire.Core", "netstandard1.3") @("Cronos")
Repack-Assembly @("Hangfire.Core", "netstandard2.0") @("Cronos")
Repack-Assembly @("Hangfire.SqlServer", "netstandard1.3") @("Dapper")
Repack-Assembly @("Hangfire.SqlServer", "netstandard2.0") @("Dapper")
}
Task Test -Depends Merge -Description "Run unit and integration tests against merged assemblies." {
# Dependencies shouldn't be re-built, because we need to run tests against merged assemblies to test
# the same assemblies that are distributed to users. Since the `dotnet test` command doesn't support
# the `--no-dependencies` command directly, we need to re-build tests themselves first.
Exec { ls "tests\**\*.csproj" | % { dotnet build -c Release --no-restore --no-dependencies $_.FullName } }
# We are running unit test project one by one, because pipelined version like the line above does not
# support halting the whole execution pipeline when "dotnet test" command fails due to a failed test,
# silently allowing build process to continue its execution even with failed tests.
Exec { dotnet test -c Release --no-build "tests\Hangfire.Core.Tests" }
Exec { dotnet test -c Release --no-build "tests\Hangfire.SqlServer.Tests" }
Exec { dotnet test -c Release --no-build -p:TestTfmsInParallel=false "tests\Hangfire.SqlServer.Msmq.Tests" }
}
Task Collect -Depends Test -Description "Copy all artifacts to the build folder." {
Collect-Assembly "Hangfire.Core" "net451"
Collect-Assembly "Hangfire.SqlServer" "net451"
Collect-Assembly "Hangfire.SqlServer.Msmq" "net451"
Collect-Assembly "Hangfire.NetCore" "net451"
Collect-Assembly "Hangfire.AspNetCore" "net451"
Collect-Assembly "Hangfire.Core" "net46"
Collect-Assembly "Hangfire.Core" "netstandard1.3"
Collect-Assembly "Hangfire.SqlServer" "netstandard1.3"
Collect-Assembly "Hangfire.NetCore" "netstandard1.3"
Collect-Assembly "Hangfire.AspNetCore" "netstandard1.3"
Collect-Assembly "Hangfire.Core" "netstandard2.0"
Collect-Assembly "Hangfire.SqlServer" "netstandard2.0"
Collect-Assembly "Hangfire.AspNetCore" "netstandard2.0"
Collect-Assembly "Hangfire.NetCore" "netstandard2.0"
Collect-Assembly "Hangfire.NetCore" "net461"
Collect-Assembly "Hangfire.AspNetCore" "net461"
Collect-Assembly "Hangfire.AspNetCore" "netcoreapp3.0"
Collect-Assembly "Hangfire.NetCore" "netstandard2.1"
Collect-Tool "src\Hangfire.SqlServer\DefaultInstall.sql"
Collect-Localizations "Hangfire.Core" "net451"
Collect-Localizations "Hangfire.Core" "net46"
Collect-Localizations "Hangfire.Core" "netstandard1.3"
Collect-Localizations "Hangfire.Core" "netstandard2.0"
Collect-File "README.md"
Collect-File "LICENSE.md"
Collect-File "NOTICES"
Collect-File "COPYING.LESSER"
Collect-File "COPYING"
Collect-File "LICENSE_STANDARD"
Collect-File "LICENSE_ROYALTYFREE"
}
Task Pack -Depends Collect -Description "Create NuGet packages and archive files." {
$version = Get-PackageVersion
Create-Package "Hangfire" $version
Create-Package "Hangfire.Core" $version
Create-Package "Hangfire.SqlServer" $version
Create-Package "Hangfire.SqlServer.Msmq" $version
Create-Package "Hangfire.AspNetCore" $version
Create-Package "Hangfire.NetCore" $version
Create-Archive "Hangfire-$version"
}
Task Sign -Depends Pack -Description "Sign artifacts." {
$version = Get-PackageVersion
Sign-ArchiveContents "Hangfire-$version" "hangfire"
}
================================================
FILE: samples/ConsoleSample/ConsoleSample.csproj
================================================
Exe
net451
true
full
================================================
FILE: samples/ConsoleSample/GenericServices.cs
================================================
using System;
namespace ConsoleSample
{
public class GenericServices
{
public void Method(TType arg1, TMethod arg2)
{
Console.WriteLine($"Arg1: {arg1}, Arg2: {arg2}");
}
}
}
================================================
FILE: samples/ConsoleSample/NewFeatures.cs
================================================
using System;
using Hangfire;
namespace ConsoleSample
{
public static class NewFeatures
{
[AutomaticRetry(Attempts = 0, OnAttemptsExceeded = AttemptsExceededAction.Delete)]
public static bool TryExceptional(bool throwException)
{
if (throwException) throw new InvalidOperationException();
return true;
}
public static void Continuation([FromResult] bool result)
{
Console.WriteLine("Success continuation, result: " + result);
}
public static void CatchExceptional([FromException] ExceptionInfo exception)
{
if (exception.Type.Contains("OperationCanceledException"))
{
Console.WriteLine("Failure continuation: Operation was canceled");
}
else
{
Console.WriteLine("Failure continuation: " + exception);
}
}
public static void FinallyExceptional([FromException] ExceptionInfo exception)
{
if (exception == null)
{
Console.WriteLine("Finally clause, after success");
}
else
{
Console.WriteLine("Finally clause, after failure: " + exception);
}
}
public static void FinallyExceptional2([FromResult] bool result, [FromException] ExceptionInfo exception)
{
if (exception == null)
{
Console.WriteLine("Finally clause 2, after success: " + result);
}
else
{
Console.WriteLine("Finally clause 2, after failure: " + exception);
}
}
public static void Test(bool throwException)
{
var exceptionalId = BackgroundJob.Enqueue(() => TryExceptional(throwException));
BackgroundJob.ContinueJobWith(exceptionalId, () => Continuation(default), JobContinuationOptions.OnlyOnSucceededState);
BackgroundJob.ContinueJobWith(exceptionalId, () => CatchExceptional(default), JobContinuationOptions.OnlyOnDeletedState);
BackgroundJob.ContinueJobWith(exceptionalId, () => FinallyExceptional(default), JobContinuationOptions.OnlyOnSucceededState | JobContinuationOptions.OnlyOnDeletedState);
BackgroundJob.ContinueJobWith(exceptionalId, () => FinallyExceptional2(default, default), JobContinuationOptions.OnAnyFinishedState);
}
}
}
================================================
FILE: samples/ConsoleSample/Program.cs
================================================
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
using Hangfire;
using Hangfire.Common;
using Hangfire.Dashboard;
using Hangfire.SqlServer;
using Hangfire.States;
using Microsoft.Owin.Hosting;
namespace ConsoleSample
{
public static class Program
{
public static void Main()
{
GlobalConfiguration.Configuration
.UseColouredConsoleLogProvider()
.SetDataCompatibilityLevel(CompatibilityLevel.Version_180)
.UseSimpleAssemblyNameTypeSerializer()
.UseIgnoredAssemblyVersionTypeResolver()
.UseRecommendedSerializerSettings()
.UseResultsInContinuations()
.UseJobDetailsRenderer(10, dto => throw new InvalidOperationException())
.UseJobDetailsRenderer(10, dto => new NonEscapedString("Hello, world! "))
.UseDefaultCulture(CultureInfo.CurrentCulture)
.UseSqlServerStorage(@"Server=.\;Database=Hangfire.Sample;Trusted_Connection=True;", new SqlServerStorageOptions
{
EnableHeavyMigrations = true,
DisableTransactionScope = true
});
Console.WriteLine(SerializationHelper.Serialize(new ExceptionInfo(new OperationCanceledException()), SerializationOption.Internal));
var backgroundJobs = new BackgroundJobClient();
backgroundJobs.RetryAttempts = 5;
NewFeatures.Test(throwException: false);
NewFeatures.Test(throwException: true);
var job1 = BackgroundJob.Enqueue(x => x.WriteIndex(0));
var job2 = BackgroundJob.ContinueJobWith(job1, "default", x => x.WriteIndex(default));
var job3 = BackgroundJob.ContinueJobWith(job2, "critical", x => x.WriteIndex(default));
var job4 = BackgroundJob.ContinueJobWith(job3, "default", x => x.WriteIndex(default));
var job5 = BackgroundJob.ContinueJobWith(job4, "critical", x => x.WriteIndex(default));
RecurringJob.AddOrUpdate("seconds", () => Console.WriteLine("Hello, seconds!"), "*/15 * * * * *");
RecurringJob.AddOrUpdate("Console.WriteLine", () => Console.WriteLine("Hello, world!"), Cron.Minutely);
RecurringJob.AddOrUpdate("hourly", () => Console.WriteLine("Hello"), "25 15 * * *");
RecurringJob.AddOrUpdate("neverfires", () => Console.WriteLine("Can only be triggered"), "0 0 31 2 *");
RecurringJob.AddOrUpdate("Hawaiian", () => Console.WriteLine("Hawaiian"), "15 08 * * *", new RecurringJobOptions
{
TimeZone = TimeZoneInfo.FindSystemTimeZoneById("Hawaiian Standard Time")
});
RecurringJob.AddOrUpdate("UTC", "critical", () => Console.WriteLine("UTC"), "15 18 * * *");
RecurringJob.AddOrUpdate("Russian", () => Console.WriteLine("Russian"), "15 21 * * *", new RecurringJobOptions
{
TimeZone = TimeZoneInfo.Local
});
using (WebApp.Start("http://localhost:12345"))
{
var count = 1;
while (true)
{
var command = Console.ReadLine();
if (command == null || command.Equals("stop", StringComparison.OrdinalIgnoreCase))
{
break;
}
if (command.StartsWith("add", StringComparison.OrdinalIgnoreCase))
{
try
{
var workCount = int.Parse(command.Substring(4));
for (var i = 0; i < workCount; i++)
{
var number = i;
BackgroundJob.Enqueue(x => x.Random(number));
}
Console.WriteLine("Jobs enqueued.");
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
if (command.StartsWith("async", StringComparison.OrdinalIgnoreCase))
{
try
{
var workCount = int.Parse(command.Substring(6));
for (var i = 0; i < workCount; i++)
{
BackgroundJob.Enqueue(x => x.Async(CancellationToken.None));
}
Console.WriteLine("Jobs enqueued.");
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
if (command.StartsWith("static", StringComparison.OrdinalIgnoreCase))
{
try
{
var workCount = int.Parse(command.Substring(7));
for (var i = 0; i < workCount; i++)
{
BackgroundJob.Enqueue(() => Console.WriteLine("Hello, {0}!", "world"));
}
Console.WriteLine("Jobs enqueued.");
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
if (command.StartsWith("error", StringComparison.OrdinalIgnoreCase))
{
var workCount = int.Parse(command.Substring(6));
for (var i = 0; i < workCount; i++)
{
BackgroundJob.Enqueue(x => x.Error());
}
}
if (command.StartsWith("args", StringComparison.OrdinalIgnoreCase))
{
var workCount = int.Parse(command.Substring(5));
for (var i = 0; i < workCount; i++)
{
BackgroundJob.Enqueue(x => x.Args(Guid.NewGuid().ToString(), 14442, DateTime.UtcNow));
}
}
if (command.StartsWith("custom", StringComparison.OrdinalIgnoreCase))
{
var workCount = int.Parse(command.Substring(7));
for (var i = 0; i < workCount; i++)
{
BackgroundJob.Enqueue(x => x.Custom(
new Random().Next(),
new[] { "Hello", "world!" },
new Services.CustomObject { Id = 123 },
DayOfWeek.Friday
));
}
}
if (command.StartsWith("fullargs", StringComparison.OrdinalIgnoreCase))
{
var workCount = int.Parse(command.Substring(9));
for (var i = 0; i < workCount; i++)
{
BackgroundJob.Enqueue(x => x.FullArgs(
false,
123,
'c',
DayOfWeek.Monday,
"hello",
new TimeSpan(12, 13, 14),
new DateTime(2012, 11, 10),
new Services.CustomObject { Id = 123 },
new[] { "1", "2", "3" },
new[] { 4, 5, 6 },
new long[0],
null,
new List { "7", "8", "9" }));
}
}
if (command.StartsWith("in", StringComparison.OrdinalIgnoreCase))
{
var seconds = int.Parse(command.Substring(2));
var number = count++;
BackgroundJob.Schedule("default", x => x.Random(number), TimeSpan.FromSeconds(seconds));
}
if (command.StartsWith("cancelable", StringComparison.OrdinalIgnoreCase))
{
var iterations = int.Parse(command.Substring(11));
BackgroundJob.Enqueue(x => x.Cancelable(iterations, JobCancellationToken.Null));
}
if (command.StartsWith("delete", StringComparison.OrdinalIgnoreCase))
{
var workCount = int.Parse(command.Substring(7));
var client = new BackgroundJobClient();
for (var i = 0; i < workCount; i++)
{
client.Create(x => x.EmptyDefault(), new DeletedState(new ExceptionInfo(new OperationCanceledException())));
}
}
if (command.StartsWith("fast", StringComparison.OrdinalIgnoreCase))
{
try
{
var workCount = int.Parse(command.Substring(5));
Parallel.For(0, workCount, new ParallelOptions { MaxDegreeOfParallelism = Environment.ProcessorCount }, i =>
{
BackgroundJob.Enqueue(
i % 2 == 0 ? "critical" : "default",
x => x.EmptyDefault());
});
Console.WriteLine("Jobs enqueued.");
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
if (command.StartsWith("generic", StringComparison.OrdinalIgnoreCase))
{
BackgroundJob.Enqueue>(x => x.Method("hello", 1));
}
if (command.StartsWith("continuations", StringComparison.OrdinalIgnoreCase))
{
WriteString("Hello, Hangfire continuations!");
}
}
}
Console.WriteLine("Press Enter to exit...");
Console.ReadLine();
}
public static void WriteString(string value)
{
var lastId = BackgroundJob.Enqueue(x => x.Write(value[0]));
for (var i = 1; i < value.Length; i++)
{
lastId = BackgroundJob.ContinueJobWith(lastId, x => x.Write(value[i]));
}
BackgroundJob.ContinueJobWith(lastId, x => x.WriteBlankLine());
}
}
}
================================================
FILE: samples/ConsoleSample/Services.cs
================================================
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Hangfire;
using Hangfire.States;
namespace ConsoleSample
{
public class Services
{
private static readonly Random Rand = new Random();
public async Task WriteIndex([FromResult] int? index)
{
if (index == null) throw new ArgumentNullException(nameof(index));
Console.Write("Hello, world!\r\n"[index.Value]);
await Task.Yield();
return index.Value + 1;
}
public async Task EmptyDefault()
{
await Task.Yield();
}
public async Task Async(CancellationToken cancellationToken)
{
await Task.Yield();
await Task.Delay(TimeSpan.FromSeconds(20), cancellationToken);
}
[Obsolete("Please use EmptyDefault method instead with `critical` queue directly")]
[Queue("critical")]
public async Task EmptyCritical()
{
await Task.Yield();
}
[AutomaticRetry(Attempts = 0), LatencyTimeout(30)]
public async Task Error()
{
await Task.Yield();
Console.WriteLine("Beginning error task...");
throw new InvalidOperationException(null, new FileLoadException());
}
[Queue("critical")]
public async Task Random([FromResult] int? number)
{
int time;
lock (Rand)
{
time = Rand.Next(10);
}
if (time < 5)
{
throw new Exception();
}
await Task.Delay(TimeSpan.FromSeconds(5 + time));
Console.WriteLine("Finished task: " + number);
return time;
}
public async Task Cancelable(int iterationCount, IJobCancellationToken token)
{
try
{
for (var i = 1; i <= iterationCount; i++)
{
await Task.Delay(1000);
Console.WriteLine("Performing step {0} of {1}...", i, iterationCount);
token.ThrowIfCancellationRequested();
}
}
catch (OperationCanceledException)
{
Console.WriteLine("Cancellation requested, exiting...");
throw;
}
}
[DisplayName("Name: {0}")]
public async Task Args(string name, int authorId, DateTime createdAt)
{
await Task.Yield();
Console.WriteLine($"{name}, {authorId}, {createdAt}");
}
public async Task Custom(int id, string[] values, CustomObject objects, DayOfWeek dayOfWeek)
{
await Task.Yield();
}
public async Task FullArgs(
bool b,
int i,
char c,
DayOfWeek e,
string s,
TimeSpan t,
DateTime d,
CustomObject o,
string[] sa,
int[] ia,
long[] ea,
object[] na,
List sl)
{
await Task.Yield();
}
public async Task LongRunning(IJobCancellationToken token)
{
await Task.Delay(TimeSpan.FromMinutes(30), token.ShutdownToken);
}
public class CustomObject
{
public int Id { get; set; }
public CustomObject[] Children { get; set; }
}
public async Task Write(char character)
{
await Task.Yield();
Console.Write(character);
}
public async Task WriteBlankLine()
{
await Task.Yield();
Console.WriteLine();
}
[IdempotentCompletion]
public static async Task WriteLine(string value)
{
await Task.Yield();
Console.WriteLine(value);
return new AwaitingState("asfafs", new EnqueuedState("criticalll"));
}
}
}
================================================
FILE: samples/ConsoleSample/Startup.cs
================================================
using System;
using Hangfire;
using Owin;
namespace ConsoleSample
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseErrorPage();
app.UseHangfireDashboard(String.Empty);
app.UseHangfireServer(new BackgroundJobServerOptions
{
Queues = new[] { "critical", "default" },
TaskScheduler = null,
SchedulePollingInterval = TimeSpan.FromSeconds(1)
});
}
}
}
================================================
FILE: samples/ConsoleSample/app.config
================================================
================================================
FILE: samples/ConsoleSample/packages.lock.json
================================================
{
"version": 1,
"dependencies": {
".NETFramework,Version=v4.5.1": {
"Microsoft.NETFramework.ReferenceAssemblies": {
"type": "Direct",
"requested": "[1.0.3, )",
"resolved": "1.0.3",
"contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==",
"dependencies": {
"Microsoft.NETFramework.ReferenceAssemblies.net451": "1.0.3"
}
},
"Microsoft.Owin.SelfHost": {
"type": "Direct",
"requested": "[4.0.0, )",
"resolved": "4.0.0",
"contentHash": "Gsxjg466eKBykIMZyrPP1IA8MIbYPd/1gcSWc6JLGb+CUO/elctCJomSbOJFceh9YU9hj9qURjpx0ns6/AghSA==",
"dependencies": {
"Microsoft.Owin": "4.0.0",
"Microsoft.Owin.Diagnostics": "4.0.0",
"Microsoft.Owin.Host.HttpListener": "4.0.0",
"Microsoft.Owin.Hosting": "4.0.0",
"Owin": "1.0.0"
}
},
"Newtonsoft.Json": {
"type": "Direct",
"requested": "[13.0.2, )",
"resolved": "13.0.2",
"contentHash": "R2pZ3B0UjeyHShm9vG+Tu0EBb2lC8b0dFzV9gVn50ofHXh9Smjk6kTn7A/FdAsC8B5cKib1OnGYOXxRBz5XQDg=="
},
"CronExpressionDescriptor": {
"type": "Transitive",
"resolved": "1.21.0",
"contentHash": "BDusPksr0codp6mgNbXfw8SG/uJKYdflCDkIaLPKD86YIdHPdzgz7hrbWDmlWpkyzJPPZ5uRDQPLaVUJMQIdBQ=="
},
"Cronos": {
"type": "Transitive",
"resolved": "0.11.1",
"contentHash": "5Ug+giPQITSAdTp/METAsofRSSUi3I5p7t4dlcXnzUgUzwZb4HkOBcYfpHuPwAHrnKJjmyW8amVzLD6mfLpaBg=="
},
"Dapper": {
"type": "Transitive",
"resolved": "1.60.6",
"contentHash": "mmnJNhKMeF2KhvVXDoVQlFxre8aJAo71YBJrKqFlvuqzYC2QiXUq94/GCDBJzU7paq4GqpkV2glw3308TcGibw=="
},
"Microsoft.NETFramework.ReferenceAssemblies.net451": {
"type": "Transitive",
"resolved": "1.0.3",
"contentHash": "vVPinxdLrwoX81ApbNIHDBI6qymQEy8eSOxDNBgKJtc2+cifnF0oT1U2d3EFx+V5O68yaqna2myZJNsgKCpVkA=="
},
"Microsoft.Owin": {
"type": "Transitive",
"resolved": "4.2.3",
"contentHash": "uoOKm7Ouj06+ULS7Ss60tRM2E5t0ku7rQ7cJk864jArtE35WTJKMzUxgHxs7gdiqHZYnC3ddZSr9zj8yRjguEA==",
"dependencies": {
"Owin": "1.0.0"
}
},
"Microsoft.Owin.Diagnostics": {
"type": "Transitive",
"resolved": "4.0.0",
"contentHash": "96t+ud+Ai2kPnkdThUPL8wM9C1MAzZ80zlfTvjK0VwJsy+9F2rylFrsRx+dD7KSsN+ANKAuxSQlaYuzU9O8pZA==",
"dependencies": {
"Microsoft.Owin": "4.0.0",
"Owin": "1.0.0"
}
},
"Microsoft.Owin.Host.HttpListener": {
"type": "Transitive",
"resolved": "4.0.0",
"contentHash": "AC0fcRPFg/gf6AmATmCJBGnD14URhCYOHtAW0g248YzZ4ByIkVA7jHBQbfij+zyIOeOya8uaAwFPCIN1wyiOQw=="
},
"Microsoft.Owin.Hosting": {
"type": "Transitive",
"resolved": "4.0.0",
"contentHash": "rAkxeyiIliRbMZyPxo83QE+UY7HNTsFOH9+wqQTcQyWBVbYkBQp373meNt4+DpupMB56A1BopLDeyoX9DZJrbA==",
"dependencies": {
"Microsoft.Owin": "4.0.0",
"Owin": "1.0.0"
}
},
"Owin": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "OseTFniKmyp76mEzOBwIKGBRS5eMoYNkMKaMXOpxx9jv88+b6mh1rSaw43vjBOItNhaLFG3d0a20PfHyibH5sw=="
},
"hangfire.core": {
"type": "Project",
"dependencies": {
"CronExpressionDescriptor": "[1.21.0, )",
"Cronos": "[0.11.1, )",
"Microsoft.Owin": "[4.2.3, )",
"Newtonsoft.Json": "[5.0.1, )",
"Owin": "[1.0.0, )"
}
},
"hangfire.sqlserver": {
"type": "Project",
"dependencies": {
"Dapper": "[1.60.6, )",
"Hangfire.Core": "[1.0.0, )"
}
},
"hangfire.sqlserver.msmq": {
"type": "Project",
"dependencies": {
"Hangfire.Core": "[1.0.0, )",
"Hangfire.SqlServer": "[1.0.0, )"
}
}
},
".NETFramework,Version=v4.5.1/win7-x86": {}
}
}
================================================
FILE: samples/NetCoreSample/NetCoreSample.csproj
================================================
Exe
net6.0
latest
NU1701;NU1702
false
================================================
FILE: samples/NetCoreSample/Program.cs
================================================
using System;
using System.Data;
using System.Threading;
using System.Threading.Tasks;
using Hangfire;
using Hangfire.Annotations;
using Hangfire.Client;
using Hangfire.Common;
using Hangfire.Server;
using Hangfire.SqlServer;
using Hangfire.States;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
namespace NetCoreSample
{
class Program
{
static async Task Main(string[] args)
{
var host = new HostBuilder()
.ConfigureLogging(x => x.AddConsole().SetMinimumLevel(LogLevel.Information))
.ConfigureServices((hostContext, services) =>
{
services.Configure(option =>
{
option.ShutdownTimeout = TimeSpan.FromSeconds(60);
});
services.TryAddSingleton(new SqlServerStorageOptions
{
CommandBatchMaxTimeout = TimeSpan.FromMinutes(5),
QueuePollInterval = TimeSpan.FromTicks(1),
UseRecommendedIsolationLevel = true,
SlidingInvisibilityTimeout = TimeSpan.FromMinutes(1)
});
services.TryAddSingleton(x => new CustomBackgroundJobFactory(
new BackgroundJobFactory(x.GetRequiredService())));
services.TryAddSingleton(x => new CustomBackgroundJobPerformer(
new BackgroundJobPerformer(
x.GetRequiredService(),
x.GetRequiredService(),
TaskScheduler.Default)));
services.TryAddSingleton(x => new CustomBackgroundJobStateChanger(
new BackgroundJobStateChanger(x.GetRequiredService())));
services.AddHangfire((provider, configuration) => configuration
.SetDataCompatibilityLevel(CompatibilityLevel.Version_170)
.UseSimpleAssemblyNameTypeSerializer()
.UseSqlServerStorage(
@"Server=.\;Database=Hangfire.Sample;Trusted_Connection=True;",
provider.GetRequiredService()));
services.AddHostedService();
services.AddHangfireServer(options =>
{
options.StopTimeout = TimeSpan.FromSeconds(15);
options.ShutdownTimeout = TimeSpan.FromSeconds(30);
});
})
.Build();
await host.RunAsync();
}
}
internal class CustomBackgroundJobFactory : IBackgroundJobFactory
{
private readonly IBackgroundJobFactory _inner;
public CustomBackgroundJobFactory([NotNull] IBackgroundJobFactory inner)
{
_inner = inner ?? throw new ArgumentNullException(nameof(inner));
}
public IStateMachine StateMachine => _inner.StateMachine;
public BackgroundJob Create(CreateContext context)
{
Console.WriteLine($"Create: {context.Job.Type.FullName}.{context.Job.Method.Name} in {context.InitialState?.Name} state");
return _inner.Create(context);
}
}
internal class CustomBackgroundJobPerformer : IBackgroundJobPerformer
{
private readonly IBackgroundJobPerformer _inner;
public CustomBackgroundJobPerformer([NotNull] IBackgroundJobPerformer inner)
{
_inner = inner ?? throw new ArgumentNullException(nameof(inner));
}
public object Perform(PerformContext context)
{
Console.WriteLine($"Perform {context.BackgroundJob.Id} ({context.BackgroundJob.Job.Type.FullName}.{context.BackgroundJob.Job.Method.Name})");
return _inner.Perform(context);
}
}
internal class CustomBackgroundJobStateChanger : IBackgroundJobStateChanger
{
private readonly IBackgroundJobStateChanger _inner;
public CustomBackgroundJobStateChanger([NotNull] IBackgroundJobStateChanger inner)
{
_inner = inner ?? throw new ArgumentNullException(nameof(inner));
}
public IState ChangeState(StateChangeContext context)
{
Console.WriteLine($"ChangeState {context.BackgroundJobId} to {context.NewState}");
return _inner.ChangeState(context);
}
}
internal class RecurringJobsService : BackgroundService
{
private readonly IBackgroundJobClient _backgroundJobs;
private readonly IRecurringJobManager _recurringJobs;
private readonly ILogger _logger;
public RecurringJobsService(
[NotNull] IBackgroundJobClient backgroundJobs,
[NotNull] IRecurringJobManager recurringJobs,
[NotNull] ILogger logger)
{
_backgroundJobs = backgroundJobs ?? throw new ArgumentNullException(nameof(backgroundJobs));
_recurringJobs = recurringJobs ?? throw new ArgumentNullException(nameof(recurringJobs));
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
}
protected override Task ExecuteAsync(CancellationToken stoppingToken)
{
try
{
_recurringJobs.AddOrUpdate("seconds", () => Console.WriteLine("Hello, seconds!"), "*/15 * * * * *");
_recurringJobs.AddOrUpdate("minutely", () => Console.WriteLine("Hello, world!"), Cron.Minutely);
_recurringJobs.AddOrUpdate("hourly", () => Console.WriteLine("Hello"), "25 15 * * *");
_recurringJobs.AddOrUpdate("neverfires", () => Console.WriteLine("Can only be triggered"), "0 0 31 2 *");
_recurringJobs.AddOrUpdate("Hawaiian", () => Console.WriteLine("Hawaiian"), "15 08 * * *", new RecurringJobOptions
{
TimeZone = TimeZoneInfo.FindSystemTimeZoneById("Hawaiian Standard Time")
});
_recurringJobs.AddOrUpdate("UTC", () => Console.WriteLine("UTC"), "15 18 * * *");
_recurringJobs.AddOrUpdate("Russian", () => Console.WriteLine("Russian"), "15 21 * * *", new RecurringJobOptions
{
TimeZone = TimeZoneInfo.Local
});
}
catch (Exception e)
{
_logger.LogError(e, "An exception occurred while creating recurring jobs.");
}
return Task.CompletedTask;
}
}
}
================================================
FILE: samples/NetCoreSample/packages.lock.json
================================================
{
"version": 1,
"dependencies": {
"net6.0": {
"Microsoft.Extensions.Hosting": {
"type": "Direct",
"requested": "[8.0.1, )",
"resolved": "8.0.1",
"contentHash": "bP9EEkHBEfjgYiG8nUaXqMk/ujwJrffOkNPP7onpRMO8R+OUSESSP4xHkCAXgYZ1COP2Q9lXlU5gkMFh20gRuw==",
"dependencies": {
"Microsoft.Extensions.Configuration": "8.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0",
"Microsoft.Extensions.Configuration.Binder": "8.0.2",
"Microsoft.Extensions.Configuration.CommandLine": "8.0.0",
"Microsoft.Extensions.Configuration.EnvironmentVariables": "8.0.0",
"Microsoft.Extensions.Configuration.FileExtensions": "8.0.1",
"Microsoft.Extensions.Configuration.Json": "8.0.1",
"Microsoft.Extensions.Configuration.UserSecrets": "8.0.1",
"Microsoft.Extensions.DependencyInjection": "8.0.1",
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"Microsoft.Extensions.Diagnostics": "8.0.1",
"Microsoft.Extensions.FileProviders.Abstractions": "8.0.0",
"Microsoft.Extensions.FileProviders.Physical": "8.0.0",
"Microsoft.Extensions.Hosting.Abstractions": "8.0.1",
"Microsoft.Extensions.Logging": "8.0.1",
"Microsoft.Extensions.Logging.Abstractions": "8.0.2",
"Microsoft.Extensions.Logging.Configuration": "8.0.1",
"Microsoft.Extensions.Logging.Console": "8.0.1",
"Microsoft.Extensions.Logging.Debug": "8.0.1",
"Microsoft.Extensions.Logging.EventLog": "8.0.1",
"Microsoft.Extensions.Logging.EventSource": "8.0.1",
"Microsoft.Extensions.Options": "8.0.2"
}
},
"Microsoft.Extensions.Logging.Console": {
"type": "Direct",
"requested": "[8.0.1, )",
"resolved": "8.0.1",
"contentHash": "uzcg/5U2eLyn5LIKlERkdSxw6VPC1yydnOSQiRRWGBGN3kphq3iL4emORzrojScDmxRhv49gp5BI8U3Dz7y4iA==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"Microsoft.Extensions.Logging": "8.0.1",
"Microsoft.Extensions.Logging.Abstractions": "8.0.2",
"Microsoft.Extensions.Logging.Configuration": "8.0.1",
"Microsoft.Extensions.Options": "8.0.2",
"System.Runtime.CompilerServices.Unsafe": "6.0.0",
"System.Text.Json": "8.0.5"
}
},
"Cronos": {
"type": "Transitive",
"resolved": "0.11.1",
"contentHash": "5Ug+giPQITSAdTp/METAsofRSSUi3I5p7t4dlcXnzUgUzwZb4HkOBcYfpHuPwAHrnKJjmyW8amVzLD6mfLpaBg=="
},
"Dapper": {
"type": "Transitive",
"resolved": "2.1.28",
"contentHash": "ha49pzOEDmCPkMxwfPSR/wxa/6RD3r42TESIgpzpi7FXq/gNVUuJVEO+wtUzntNRhtmq3BKCl0s0aAlSZLkBUA=="
},
"Microsoft.CSharp": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "vvVR/B08YVghQ4jHEloxqw2ZWzEGE1AOA5E0DioUM3ujbXz6FD3AfB/0Jl2ohJPd0nXYGwmPe1En6HTsSriq1A=="
},
"Microsoft.Extensions.Configuration": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "0J/9YNXTMWSZP2p2+nvl8p71zpSwokZXZuJW+VjdErkegAnFdO1XlqtA62SJtgVYHdKu3uPxJHcMR/r35HwFBA==",
"dependencies": {
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0",
"Microsoft.Extensions.Primitives": "8.0.0"
}
},
"Microsoft.Extensions.Configuration.Abstractions": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "3lE/iLSutpgX1CC0NOW70FJoGARRHbyKmG7dc0klnUZ9Dd9hS6N/POPWhKhMLCEuNN5nXEY5agmlFtH562vqhQ==",
"dependencies": {
"Microsoft.Extensions.Primitives": "8.0.0"
}
},
"Microsoft.Extensions.Configuration.Binder": {
"type": "Transitive",
"resolved": "8.0.2",
"contentHash": "7IQhGK+wjyGrNsPBjJcZwWAr+Wf6D4+TwOptUt77bWtgNkiV8tDEbhFS+dDamtQFZ2X7kWG9m71iZQRj2x3zgQ==",
"dependencies": {
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0"
}
},
"Microsoft.Extensions.Configuration.CommandLine": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "NZuZMz3Q8Z780nKX3ifV1fE7lS+6pynDHK71OfU4OZ1ItgvDOhyOC7E6z+JMZrAj63zRpwbdldYFk499t3+1dQ==",
"dependencies": {
"Microsoft.Extensions.Configuration": "8.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0"
}
},
"Microsoft.Extensions.Configuration.EnvironmentVariables": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "plvZ0ZIpq+97gdPNNvhwvrEZ92kNml9hd1pe3idMA7svR0PztdzVLkoWLcRFgySYXUJc3kSM3Xw3mNFMo/bxRA==",
"dependencies": {
"Microsoft.Extensions.Configuration": "8.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0"
}
},
"Microsoft.Extensions.Configuration.FileExtensions": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "EJzSNO9oaAXnTdtdNO6npPRsIIeZCBSNmdQ091VDO7fBiOtJAAeEq6dtrVXIi3ZyjC5XRSAtVvF8SzcneRHqKQ==",
"dependencies": {
"Microsoft.Extensions.Configuration": "8.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0",
"Microsoft.Extensions.FileProviders.Abstractions": "8.0.0",
"Microsoft.Extensions.FileProviders.Physical": "8.0.0",
"Microsoft.Extensions.Primitives": "8.0.0"
}
},
"Microsoft.Extensions.Configuration.Json": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "L89DLNuimOghjV3tLx0ArFDwVEJD6+uGB3BMCMX01kaLzXkaXHb2021xOMl2QOxUxbdePKUZsUY7n2UUkycjRg==",
"dependencies": {
"Microsoft.Extensions.Configuration": "8.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0",
"Microsoft.Extensions.Configuration.FileExtensions": "8.0.1",
"Microsoft.Extensions.FileProviders.Abstractions": "8.0.0",
"System.Text.Json": "8.0.5"
}
},
"Microsoft.Extensions.Configuration.UserSecrets": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "7tYqdPPpAK+3jO9d5LTuCK2VxrEdf85Ol4trUr6ds4jclBecadWZ/RyPCbNjfbN5iGTfUnD/h65TOQuqQv2c+A==",
"dependencies": {
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0",
"Microsoft.Extensions.Configuration.Json": "8.0.1",
"Microsoft.Extensions.FileProviders.Abstractions": "8.0.0",
"Microsoft.Extensions.FileProviders.Physical": "8.0.0"
}
},
"Microsoft.Extensions.DependencyInjection": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "BmANAnR5Xd4Oqw7yQ75xOAYODybZQRzdeNucg7kS5wWKd2PNnMdYtJ2Vciy0QLylRmv42DGl5+AFL9izA6F1Rw==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2"
}
},
"Microsoft.Extensions.DependencyInjection.Abstractions": {
"type": "Transitive",
"resolved": "8.0.2",
"contentHash": "3iE7UF7MQkCv1cxzCahz+Y/guQbTqieyxyaWKhrRO91itI9cOKO76OHeQDahqG4MmW5umr3CcCvGmK92lWNlbg=="
},
"Microsoft.Extensions.Diagnostics": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "doVPCUUCY7c6LhBsEfiy3W1bvS7Mi6LkfQMS8nlC22jZWNxBv8VO8bdfeyvpYFst6Kxqk7HBC6lytmEoBssvSQ==",
"dependencies": {
"Microsoft.Extensions.Configuration": "8.0.0",
"Microsoft.Extensions.Diagnostics.Abstractions": "8.0.1",
"Microsoft.Extensions.Options.ConfigurationExtensions": "8.0.0"
}
},
"Microsoft.Extensions.Diagnostics.Abstractions": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "elH2vmwNmsXuKmUeMQ4YW9ldXiF+gSGDgg1vORksob5POnpaI6caj1Hu8zaYbEuibhqCoWg0YRWDazBY3zjBfg==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"Microsoft.Extensions.Options": "8.0.2",
"System.Diagnostics.DiagnosticSource": "8.0.1"
}
},
"Microsoft.Extensions.FileProviders.Abstractions": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "ZbaMlhJlpisjuWbvXr4LdAst/1XxH3vZ6A0BsgTphZ2L4PGuxRLz7Jr/S7mkAAnOn78Vu0fKhEgNF5JO3zfjqQ==",
"dependencies": {
"Microsoft.Extensions.Primitives": "8.0.0"
}
},
"Microsoft.Extensions.FileProviders.Physical": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "UboiXxpPUpwulHvIAVE36Knq0VSHaAmfrFkegLyBZeaADuKezJ/AIXYAW8F5GBlGk/VaibN2k/Zn1ca8YAfVdA==",
"dependencies": {
"Microsoft.Extensions.FileProviders.Abstractions": "8.0.0",
"Microsoft.Extensions.FileSystemGlobbing": "8.0.0",
"Microsoft.Extensions.Primitives": "8.0.0"
}
},
"Microsoft.Extensions.FileSystemGlobbing": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "OK+670i7esqlQrPjdIKRbsyMCe9g5kSLpRRQGSr4Q58AOYEe/hCnfLZprh7viNisSUUQZmMrbbuDaIrP+V1ebQ=="
},
"Microsoft.Extensions.Hosting.Abstractions": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "nHwq9aPBdBPYXPti6wYEEfgXddfBrYC+CQLn+qISiwQq5tpfaqDZSKOJNxoe9rfQxGf1c+2wC/qWFe1QYJPYqw==",
"dependencies": {
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"Microsoft.Extensions.Diagnostics.Abstractions": "8.0.1",
"Microsoft.Extensions.FileProviders.Abstractions": "8.0.0",
"Microsoft.Extensions.Logging.Abstractions": "8.0.2"
}
},
"Microsoft.Extensions.Logging": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "4x+pzsQEbqxhNf1QYRr5TDkLP9UsLT3A6MdRKDDEgrW7h1ljiEPgTNhKYUhNCCAaVpQECVQ+onA91PTPnIp6Lw==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection": "8.0.1",
"Microsoft.Extensions.Logging.Abstractions": "8.0.2",
"Microsoft.Extensions.Options": "8.0.2"
}
},
"Microsoft.Extensions.Logging.Abstractions": {
"type": "Transitive",
"resolved": "8.0.2",
"contentHash": "nroMDjS7hNBPtkZqVBbSiQaQjWRDxITI8Y7XnDs97rqG3EbzVTNLZQf7bIeUJcaHOV8bca47s1Uxq94+2oGdxA==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"System.Diagnostics.DiagnosticSource": "8.0.1"
}
},
"Microsoft.Extensions.Logging.Configuration": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "QWwTrsgOnJMmn+XUslm8D2H1n3PkP/u/v52FODtyBc/k4W9r3i2vcXXeeX/upnzllJYRRbrzVzT0OclfNJtBJA==",
"dependencies": {
"Microsoft.Extensions.Configuration": "8.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0",
"Microsoft.Extensions.Configuration.Binder": "8.0.2",
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"Microsoft.Extensions.Logging": "8.0.1",
"Microsoft.Extensions.Logging.Abstractions": "8.0.2",
"Microsoft.Extensions.Options": "8.0.2",
"Microsoft.Extensions.Options.ConfigurationExtensions": "8.0.0"
}
},
"Microsoft.Extensions.Logging.Debug": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "B8hqNuYudC2RB+L/DI33uO4rf5by41fZVdcVL2oZj0UyoAZqnwTwYHp1KafoH4nkl1/23piNeybFFASaV2HkFg==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"Microsoft.Extensions.Logging": "8.0.1",
"Microsoft.Extensions.Logging.Abstractions": "8.0.2"
}
},
"Microsoft.Extensions.Logging.EventLog": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "ZD1m4GXoxcZeDJIq8qePKj+QAWeQNO/OG8skvrOG8RQfxLp9MAKRoliTc27xanoNUzeqvX5HhS/I7c0BvwAYUg==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"Microsoft.Extensions.Logging": "8.0.1",
"Microsoft.Extensions.Logging.Abstractions": "8.0.2",
"Microsoft.Extensions.Options": "8.0.2",
"System.Diagnostics.EventLog": "8.0.1"
}
},
"Microsoft.Extensions.Logging.EventSource": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "YMXMAla6B6sEf/SnfZYTty633Ool3AH7KOw2LOaaEqwSo2piK4f7HMtzyc3CNiipDnq1fsUSuG5Oc7ZzpVy8WQ==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"Microsoft.Extensions.Logging": "8.0.1",
"Microsoft.Extensions.Logging.Abstractions": "8.0.2",
"Microsoft.Extensions.Options": "8.0.2",
"Microsoft.Extensions.Primitives": "8.0.0",
"System.Runtime.CompilerServices.Unsafe": "6.0.0",
"System.Text.Json": "8.0.5"
}
},
"Microsoft.Extensions.Options": {
"type": "Transitive",
"resolved": "8.0.2",
"contentHash": "dWGKvhFybsaZpGmzkGCbNNwBD1rVlWzrZKANLW/CcbFJpCEceMCGzT7zZwHOGBCbwM0SzBuceMj5HN1LKV1QqA==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0",
"Microsoft.Extensions.Primitives": "8.0.0"
}
},
"Microsoft.Extensions.Options.ConfigurationExtensions": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "0f4DMRqEd50zQh+UyJc+/HiBsZ3vhAQALgdkcQEalSH1L2isdC7Yj54M3cyo5e+BeO5fcBQ7Dxly8XiBBcvRgw==",
"dependencies": {
"Microsoft.Extensions.Configuration.Abstractions": "8.0.0",
"Microsoft.Extensions.Configuration.Binder": "8.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0",
"Microsoft.Extensions.Options": "8.0.0",
"Microsoft.Extensions.Primitives": "8.0.0"
}
},
"Microsoft.Extensions.Primitives": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
},
"Newtonsoft.Json": {
"type": "Transitive",
"resolved": "11.0.1",
"contentHash": "pNN4l+J6LlpIvHOeNdXlwxv39NPJ2B5klz+Rd2UQZIx30Squ5oND1Yy3wEAUoKn0GPUj6Yxt9lxlYWQqfZcvKg=="
},
"System.Diagnostics.DiagnosticSource": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "vaoWjvkG1aenR2XdjaVivlCV9fADfgyhW5bZtXT23qaEea0lWiUljdQuze4E31vKM7ZWJaSUsbYIKE3rnzfZUg==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
},
"System.Diagnostics.EventLog": {
"type": "Transitive",
"resolved": "8.0.1",
"contentHash": "n1ZP7NM2Gkn/MgD8+eOT5MulMj6wfeQMNS2Pizvq5GHCZfjlFMXV2irQlQmJhwA2VABC57M0auudO89Iu2uRLg=="
},
"System.Runtime.CompilerServices.Unsafe": {
"type": "Transitive",
"resolved": "6.0.0",
"contentHash": "/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg=="
},
"System.Text.Encodings.Web": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
},
"System.Text.Json": {
"type": "Transitive",
"resolved": "8.0.5",
"contentHash": "0f1B50Ss7rqxXiaBJyzUu9bWFOO2/zSlifZ/UNMdiIpDYe4cY4LQQicP4nirK1OS31I43rn062UIJ1Q9bpmHpg==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0",
"System.Text.Encodings.Web": "8.0.0"
}
},
"hangfire.aspnetcore": {
"type": "Project",
"dependencies": {
"Hangfire.NetCore": "[1.0.0, )"
}
},
"hangfire.core": {
"type": "Project",
"dependencies": {
"Cronos": "[0.11.1, )",
"Microsoft.CSharp": "[4.4.0, )",
"Newtonsoft.Json": "[11.0.1, )"
}
},
"hangfire.netcore": {
"type": "Project",
"dependencies": {
"Hangfire.Core": "[1.0.0, )",
"Microsoft.Extensions.DependencyInjection.Abstractions": "[3.0.0, )",
"Microsoft.Extensions.Hosting.Abstractions": "[3.0.0, )",
"Microsoft.Extensions.Logging.Abstractions": "[3.0.0, )"
}
},
"hangfire.sqlserver": {
"type": "Project",
"dependencies": {
"Dapper": "[2.1.28, )",
"Hangfire.Core": "[1.0.0, )"
}
}
}
}
}
================================================
FILE: src/Directory.Build.props
================================================
false
true
embedded
true
Latest
false
CA1200;CA1859;1591
true
latest
Recommended
true
true
false
================================================
FILE: src/Hangfire.AspNetCore/Dashboard/AspNetCoreDashboardContext.cs
================================================
// This file is part of Hangfire. Copyright © 2016 Hangfire OÜ.
//
// Hangfire is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3
// of the License, or any later version.
//
// Hangfire is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with Hangfire. If not, see .
using System;
using Hangfire.Annotations;
using Microsoft.AspNetCore.Antiforgery;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
namespace Hangfire.Dashboard
{
public sealed class AspNetCoreDashboardContext : DashboardContext
{
public AspNetCoreDashboardContext(
[NotNull] JobStorage storage,
[NotNull] DashboardOptions options,
[NotNull] HttpContext httpContext)
: base(storage, options)
{
HttpContext = httpContext ?? throw new ArgumentNullException(nameof(httpContext));
Request = new AspNetCoreDashboardRequest(httpContext);
Response = new AspNetCoreDashboardResponse(httpContext);
if (!options.IgnoreAntiforgeryToken)
{
var antiforgery = HttpContext.RequestServices.GetService();
var tokenSet = antiforgery?.GetAndStoreTokens(HttpContext);
if (tokenSet != null)
{
AntiforgeryHeader = tokenSet.HeaderName;
AntiforgeryToken = tokenSet.RequestToken;
}
}
}
public HttpContext HttpContext { get; }
public override IBackgroundJobClient GetBackgroundJobClient()
{
var factory = HttpContext.RequestServices.GetService();
if (factory != null)
{
return factory.GetClient(Storage);
}
return HttpContext.RequestServices.GetService() ?? base.GetBackgroundJobClient();
}
public override IRecurringJobManager GetRecurringJobManager()
{
var factory = HttpContext.RequestServices.GetService();
if (factory != null)
{
return factory.GetManager(Storage);
}
return HttpContext.RequestServices.GetService() ?? base.GetRecurringJobManager();
}
}
}
================================================
FILE: src/Hangfire.AspNetCore/Dashboard/AspNetCoreDashboardContextExtensions.cs
================================================
// This file is part of Hangfire. Copyright © 2016 Hangfire OÜ.
//
// Hangfire is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3
// of the License, or any later version.
//
// Hangfire is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with Hangfire. If not, see .
using System;
using Hangfire.Annotations;
using Microsoft.AspNetCore.Http;
namespace Hangfire.Dashboard
{
public static class AspNetCoreDashboardContextExtensions
{
public static HttpContext GetHttpContext([NotNull] this DashboardContext context)
{
if (context == null) throw new ArgumentNullException(nameof(context));
var aspNetCoreContext = context as AspNetCoreDashboardContext;
if (aspNetCoreContext == null)
{
throw new ArgumentException($"Context argument should be of type `{nameof(AspNetCoreDashboardContext)}`!", nameof(context));
}
return aspNetCoreContext.HttpContext;
}
}
}
================================================
FILE: src/Hangfire.AspNetCore/Dashboard/AspNetCoreDashboardMiddleware.cs
================================================
// This file is part of Hangfire. Copyright © 2016 Hangfire OÜ.
//
// Hangfire is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3
// of the License, or any later version.
//
// Hangfire is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with Hangfire. If not, see .
using System;
using System.Net;
using System.Threading.Tasks;
using Hangfire.Annotations;
using Microsoft.AspNetCore.Antiforgery;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
namespace Hangfire.Dashboard
{
public class AspNetCoreDashboardMiddleware
{
private readonly RequestDelegate _next;
private readonly JobStorage _storage;
private readonly DashboardOptions _options;
private readonly RouteCollection _routes;
private readonly bool _finalizeWhenNotFound;
public AspNetCoreDashboardMiddleware(
[NotNull] RequestDelegate next,
[NotNull] JobStorage storage,
[NotNull] DashboardOptions options,
[NotNull] RouteCollection routes)
: this(next, storage, options, routes, finalizeWhenNotFound: false)
{
}
public AspNetCoreDashboardMiddleware(
[NotNull] RequestDelegate next,
[NotNull] JobStorage storage,
[NotNull] DashboardOptions options,
[NotNull] RouteCollection routes,
bool finalizeWhenNotFound)
{
if (next == null) throw new ArgumentNullException(nameof(next));
if (storage == null) throw new ArgumentNullException(nameof(storage));
if (options == null) throw new ArgumentNullException(nameof(options));
if (routes == null) throw new ArgumentNullException(nameof(routes));
_next = next;
_storage = storage;
_options = options;
_routes = routes;
_finalizeWhenNotFound = finalizeWhenNotFound;
}
public async Task Invoke(HttpContext httpContext)
{
var context = new AspNetCoreDashboardContext(_storage, _options, httpContext);
var findResult = _routes.FindDispatcher(httpContext.Request.Path.Value);
if (findResult == null)
{
if (_finalizeWhenNotFound)
{
// When UsePathBase method is used, such as in MapHangfireDashboard, we should
// set 404 status code explicitly to handle non-found endpoints, because no one
// will do this for us.
// https://github.com/HangfireIO/Hangfire/issues/1729
// https://github.com/HangfireIO/Hangfire/issues/2541
SetResponseStatusCode(httpContext, (int)HttpStatusCode.NotFound);
return;
}
await _next.Invoke(httpContext);
return;
}
// ReSharper disable once LoopCanBeConvertedToQuery
foreach (var filter in _options.Authorization)
{
if (!filter.Authorize(context))
{
SetResponseStatusCode(httpContext, GetUnauthorizedStatusCode(httpContext));
return;
}
}
foreach (var filter in _options.AsyncAuthorization)
{
if (!await filter.AuthorizeAsync(context))
{
SetResponseStatusCode(httpContext, GetUnauthorizedStatusCode(httpContext));
return;
}
}
if (!_options.IgnoreAntiforgeryToken)
{
var antiforgery = httpContext.RequestServices.GetService();
if (antiforgery != null)
{
var requestValid = await antiforgery.IsRequestValidAsync(httpContext);
if (!requestValid)
{
// Invalid or missing CSRF token
SetResponseStatusCode(httpContext, (int) HttpStatusCode.Forbidden);
return;
}
}
}
context.UriMatch = findResult.Item2;
await findResult.Item1.Dispatch(context);
}
private static void SetResponseStatusCode(HttpContext httpContext, int statusCode)
{
if (!httpContext.Response.HasStarted)
{
httpContext.Response.StatusCode = statusCode;
}
}
private static int GetUnauthorizedStatusCode(HttpContext httpContext)
{
return httpContext.User?.Identity?.IsAuthenticated == true
? (int)HttpStatusCode.Forbidden
: (int)HttpStatusCode.Unauthorized;
}
}
}
================================================
FILE: src/Hangfire.AspNetCore/Dashboard/AspNetCoreDashboardRequest.cs
================================================
// This file is part of Hangfire. Copyright © 2016 Hangfire OÜ.
//
// Hangfire is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3
// of the License, or any later version.
//
// Hangfire is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with Hangfire. If not, see .
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Hangfire.Annotations;
using Microsoft.AspNetCore.Http;
namespace Hangfire.Dashboard
{
internal sealed class AspNetCoreDashboardRequest : DashboardRequest
{
private readonly HttpContext _context;
public AspNetCoreDashboardRequest([NotNull] HttpContext context)
{
if (context == null) throw new ArgumentNullException(nameof(context));
_context = context;
}
public override string Method => _context.Request.Method;
public override string Path => _context.Request.Path.Value;
public override string PathBase => _context.Request.PathBase.Value;
public override string LocalIpAddress => _context.Connection.LocalIpAddress?.ToString();
public override string RemoteIpAddress => _context.Connection.RemoteIpAddress?.ToString();
public override string GetQuery(string key) => _context.Request.Query[key];
public override async Task> GetFormValuesAsync(string key)
{
var form = await _context.Request.ReadFormAsync();
return form[key];
}
}
}
================================================
FILE: src/Hangfire.AspNetCore/Dashboard/AspNetCoreDashboardResponse.cs
================================================
// This file is part of Hangfire. Copyright © 2016 Hangfire OÜ.
//
// Hangfire is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3
// of the License, or any later version.
//
// Hangfire is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with Hangfire. If not, see .
using System;
using System.Globalization;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Hangfire.Annotations;
namespace Hangfire.Dashboard
{
internal sealed class AspNetCoreDashboardResponse : DashboardResponse
{
private readonly HttpContext _context;
public AspNetCoreDashboardResponse([NotNull] HttpContext context)
{
if (context == null) throw new ArgumentNullException(nameof(context));
_context = context;
}
public override string ContentType
{
get { return _context.Response.ContentType; }
set
{
if (!_context.Response.HasStarted)
{
_context.Response.ContentType = value;
}
}
}
public override int StatusCode
{
get { return _context.Response.StatusCode; }
set
{
if (!_context.Response.HasStarted)
{
_context.Response.StatusCode = value;
}
}
}
public override Stream Body => _context.Response.Body;
public override Task WriteAsync(string text)
{
return _context.Response.WriteAsync(text);
}
public override void SetExpire(DateTimeOffset? value)
{
if (!_context.Response.HasStarted)
{
_context.Response.Headers["Expires"] = value?.ToString("r", CultureInfo.InvariantCulture);
}
}
}
}
================================================
FILE: src/Hangfire.AspNetCore/Hangfire.AspNetCore.csproj
================================================
net451;net461;netstandard1.3;netstandard2.0;netcoreapp3.0
true
$(NoWarn);1591
Hangfire
================================================
FILE: src/Hangfire.AspNetCore/HangfireApplicationBuilderExtensions.cs
================================================
// This file is part of Hangfire. Copyright © 2016 Hangfire OÜ.
//
// Hangfire is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3
// of the License, or any later version.
//
// Hangfire is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with Hangfire. If not, see .
using System;
using System.Collections.Generic;
using Hangfire.Annotations;
using Hangfire.Dashboard;
using Hangfire.Server;
using Microsoft.AspNetCore.Builder;
#if NETSTANDARD2_1 || NETCOREAPP3_0_OR_GREATER
using Microsoft.Extensions.Hosting;
#else
using Microsoft.AspNetCore.Hosting;
#endif
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Hangfire.Common;
namespace Hangfire
{
public static class HangfireApplicationBuilderExtensions
{
public static IApplicationBuilder UseHangfireDashboard(
[NotNull] this IApplicationBuilder app,
[NotNull] string pathMatch = "/hangfire",
[CanBeNull] DashboardOptions options = null,
[CanBeNull] JobStorage storage = null)
{
if (app == null) throw new ArgumentNullException(nameof(app));
if (pathMatch == null) throw new ArgumentNullException(nameof(pathMatch));
HangfireServiceCollectionExtensions.ThrowIfNotConfigured(app.ApplicationServices);
var services = app.ApplicationServices;
storage = storage ?? services.GetRequiredService();
options = options ?? services.GetService() ?? new DashboardOptions();
options.TimeZoneResolver = options.TimeZoneResolver ?? services.GetService();
var routes = app.ApplicationServices.GetRequiredService();
app.Map(new PathString(pathMatch), x => x.UseMiddleware(storage, options, routes));
return app;
}
#if !NET451 && !NETSTANDARD1_3
[Obsolete("Please use IServiceCollection.AddHangfireServer extension method instead in the ConfigureServices method. Will be removed in 2.0.0.")]
#endif
public static IApplicationBuilder UseHangfireServer(
[NotNull] this IApplicationBuilder app,
[CanBeNull] BackgroundJobServerOptions options = null,
[CanBeNull] IEnumerable additionalProcesses = null,
[CanBeNull] JobStorage storage = null)
{
if (app == null) throw new ArgumentNullException(nameof(app));
HangfireServiceCollectionExtensions.ThrowIfNotConfigured(app.ApplicationServices);
var services = app.ApplicationServices;
storage = storage ?? services.GetRequiredService();
options = options ?? services.GetService() ?? new BackgroundJobServerOptions();
additionalProcesses = additionalProcesses ?? services.GetServices();
options.Activator = options.Activator ?? services.GetService();
options.FilterProvider = options.FilterProvider ?? services.GetService();
options.TimeZoneResolver = options.TimeZoneResolver ?? services.GetService();
services.RegisterHangfireServer(HangfireServiceCollectionExtensions.GetInternalServices(services, out var factory, out var stateChanger, out var performer)
#pragma warning disable 618
? new BackgroundJobServer(options, storage, additionalProcesses, null, null, factory, performer, stateChanger)
#pragma warning restore 618
: new BackgroundJobServer(options, storage, additionalProcesses));
return app;
}
public static IApplicationBuilder UseHangfireServer(
[NotNull] this IApplicationBuilder app,
[NotNull] Func serverFactory)
{
if (app == null) throw new ArgumentNullException(nameof(app));
if (serverFactory == null) throw new ArgumentNullException(nameof(serverFactory));
HangfireServiceCollectionExtensions.ThrowIfNotConfigured(app.ApplicationServices);
app.ApplicationServices.RegisterHangfireServer(serverFactory());
return app;
}
public static IServiceProvider RegisterHangfireServer(
[NotNull] this IServiceProvider services,
[NotNull] IBackgroundProcessingServer server)
{
#if NETSTANDARD2_1 || NETCOREAPP3_0_OR_GREATER
var lifetime = services.GetRequiredService();
#else
var lifetime = services.GetRequiredService();
#endif
lifetime.ApplicationStopping.Register(server.SendStop);
lifetime.ApplicationStopped.Register(server.Dispose);
return services;
}
}
}
================================================
FILE: src/Hangfire.AspNetCore/HangfireEndpointRouteBuilderExtensions.cs
================================================
// This file is part of Hangfire. Copyright © 2019 Hangfire OÜ.
//
// Hangfire is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3
// of the License, or any later version.
//
// Hangfire is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with Hangfire. If not, see .
#if NETSTANDARD2_1 || NETCOREAPP3_0_OR_GREATER
using System.Collections.Generic;
using Hangfire.Annotations;
using Hangfire.Dashboard;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Linq;
namespace Hangfire
{
public static class HangfireEndpointRouteBuilderExtensions
{
public static IEndpointConventionBuilder MapHangfireDashboard(
[NotNull] this IEndpointRouteBuilder endpoints,
[CanBeNull] DashboardOptions options = null,
[CanBeNull] JobStorage storage = null)
{
return MapHangfireDashboard(endpoints, "/hangfire", options, storage);
}
public static IEndpointConventionBuilder MapHangfireDashboard(
[NotNull] this IEndpointRouteBuilder endpoints,
[NotNull] string pattern,
[CanBeNull] DashboardOptions options = null,
[CanBeNull] JobStorage storage = null)
{
if (endpoints == null) throw new ArgumentNullException(nameof(endpoints));
if (pattern == null) throw new ArgumentNullException(nameof(pattern));
var app = endpoints.CreateApplicationBuilder();
HangfireServiceCollectionExtensions.ThrowIfNotConfigured(app.ApplicationServices);
var services = app.ApplicationServices;
storage = storage ?? services.GetRequiredService();
options = options ?? services.GetService() ?? new DashboardOptions();
options.TimeZoneResolver = options.TimeZoneResolver ?? services.GetService();
var routes = app.ApplicationServices.GetRequiredService();
var pipeline = app
.UsePathBase(pattern)
.UseMiddleware(storage, options, routes, true)
.Build();
return endpoints.Map(pattern + "/{**path}", pipeline);
}
public static IEndpointConventionBuilder MapHangfireDashboardWithNoAuthorizationFilters(
[NotNull] this IEndpointRouteBuilder endpoints,
[NotNull] string pattern = "/hangfire",
[CanBeNull] DashboardOptions options = null,
[CanBeNull] JobStorage storage = null)
{
if (endpoints == null) throw new ArgumentNullException(nameof(endpoints));
options = options ?? new DashboardOptions();
// We don't require the default LocalRequestsOnlyAuthorizationFilter since we provide our own policy
options.Authorization = Enumerable.Empty();
options.AsyncAuthorization = Enumerable.Empty();
return endpoints.MapHangfireDashboard(pattern, options, storage);
}
public static IEndpointConventionBuilder MapHangfireDashboardWithAuthorizationPolicy(
[NotNull] this IEndpointRouteBuilder endpoints,
[NotNull] string authorizationPolicyName,
[NotNull] string pattern = "/hangfire",
[CanBeNull] DashboardOptions options = null,
[CanBeNull] JobStorage storage = null)
{
if (endpoints == null) throw new ArgumentNullException(nameof(endpoints));
if (authorizationPolicyName == null) throw new ArgumentNullException(nameof(authorizationPolicyName));
return endpoints
.MapHangfireDashboardWithNoAuthorizationFilters(pattern, options, storage)
.RequireAuthorization(authorizationPolicyName);
}
}
}
#endif
================================================
FILE: src/Hangfire.AspNetCore/Properties/AssemblyInfo.cs
================================================
using System.Reflection;
[assembly: AssemblyTitle("Hangfire.AspNetCore")]
[assembly: AssemblyDescription("ASP.NET Core support for Hangfire")]
================================================
FILE: src/Hangfire.AspNetCore/packages.lock.json
================================================
{
"version": 1,
"dependencies": {
".NETCoreApp,Version=v3.0": {
"Microsoft.CodeAnalysis.NetAnalyzers": {
"type": "Direct",
"requested": "[9.0.0, )",
"resolved": "9.0.0",
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
},
"Microsoft.SourceLink.GitHub": {
"type": "Direct",
"requested": "[8.0.0, )",
"resolved": "8.0.0",
"contentHash": "G5q7OqtwIyGTkeIOAc3u2ZuV/kicQaec5EaRnc0pIeSnh9LUjj+PYQrJYBURvDt7twGl2PKA7nSN0kz1Zw5bnQ==",
"dependencies": {
"Microsoft.Build.Tasks.Git": "8.0.0",
"Microsoft.SourceLink.Common": "8.0.0"
}
},
"Cronos": {
"type": "Transitive",
"resolved": "0.11.1",
"contentHash": "5Ug+giPQITSAdTp/METAsofRSSUi3I5p7t4dlcXnzUgUzwZb4HkOBcYfpHuPwAHrnKJjmyW8amVzLD6mfLpaBg=="
},
"Microsoft.Build.Tasks.Git": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "bZKfSIKJRXLTuSzLudMFte/8CempWjVamNUR5eHJizsy+iuOuO/k2gnh7W0dHJmYY0tBf+gUErfluCv5mySAOQ=="
},
"Microsoft.CSharp": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "vvVR/B08YVghQ4jHEloxqw2ZWzEGE1AOA5E0DioUM3ujbXz6FD3AfB/0Jl2ohJPd0nXYGwmPe1En6HTsSriq1A=="
},
"Microsoft.Extensions.Configuration.Abstractions": {
"type": "Transitive",
"resolved": "3.0.0",
"contentHash": "Lge/PbXC53jI1MF2J92X5EZOeKV8Q/rlB1aV3H9I/ZTDyQGOyBcL03IAvnviWpHKj43BDkNy6kU2KKoh8kAS0g==",
"dependencies": {
"Microsoft.Extensions.Primitives": "3.0.0"
}
},
"Microsoft.Extensions.DependencyInjection.Abstractions": {
"type": "Transitive",
"resolved": "3.0.0",
"contentHash": "ofQRroDlzJ0xKOtzNuaVt6QKNImFkhkG0lIMpGl7PtXnIf5SuLWBeiQZAP8DNSxDBJJdcsPkiJiMYK2WA5H8dQ=="
},
"Microsoft.Extensions.FileProviders.Abstractions": {
"type": "Transitive",
"resolved": "3.0.0",
"contentHash": "kahEeykb6FyQytoZNNXuz74X85B4weIEt8Kd+0klK48bkXDWOIHAOvNjlGsPMcS9CL935Te8QGQS83JqCbpdHA==",
"dependencies": {
"Microsoft.Extensions.Primitives": "3.0.0"
}
},
"Microsoft.Extensions.Hosting.Abstractions": {
"type": "Transitive",
"resolved": "3.0.0",
"contentHash": "qeDWS5ErmkUN96BdQqpmeCmLk5HJWQ/SPw3ux5v5/Qb0hKZS5wojBMulnBC7JUEiBwg7Ir71Yjf1lFiRT5MdtQ==",
"dependencies": {
"Microsoft.Extensions.Configuration.Abstractions": "3.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "3.0.0",
"Microsoft.Extensions.FileProviders.Abstractions": "3.0.0",
"Microsoft.Extensions.Logging.Abstractions": "3.0.0"
}
},
"Microsoft.Extensions.Logging.Abstractions": {
"type": "Transitive",
"resolved": "3.0.0",
"contentHash": "+PsosTYZn+omucI0ff9eywo9QcPLwcbIWf7dz7ZLM1zGR8gVZXJ3wo6+tkuIedUNW5iWENlVJPEvrGjiVeoNNQ=="
},
"Microsoft.Extensions.Primitives": {
"type": "Transitive",
"resolved": "3.0.0",
"contentHash": "6gwewTbmOh+ZVBicVkL1XRp79sx4O7BVY6Yy+7OYZdwn3pyOKe9lOam+3gXJ3TZMjhJZdV0Ub8hxHt2vkrmN5Q=="
},
"Microsoft.SourceLink.Common": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "dk9JPxTCIevS75HyEQ0E4OVAFhB2N+V9ShCXf8Q6FkUQZDkgLI12y679Nym1YqsiSysuQskT7Z+6nUf3yab6Vw=="
},
"Newtonsoft.Json": {
"type": "Transitive",
"resolved": "11.0.1",
"contentHash": "pNN4l+J6LlpIvHOeNdXlwxv39NPJ2B5klz+Rd2UQZIx30Squ5oND1Yy3wEAUoKn0GPUj6Yxt9lxlYWQqfZcvKg=="
},
"hangfire.core": {
"type": "Project",
"dependencies": {
"Cronos": "[0.11.1, )",
"Microsoft.CSharp": "[4.4.0, )",
"Newtonsoft.Json": "[11.0.1, )"
}
},
"hangfire.netcore": {
"type": "Project",
"dependencies": {
"Hangfire.Core": "[1.0.0, )",
"Microsoft.Extensions.DependencyInjection.Abstractions": "[3.0.0, )",
"Microsoft.Extensions.Hosting.Abstractions": "[3.0.0, )",
"Microsoft.Extensions.Logging.Abstractions": "[3.0.0, )"
}
}
},
".NETFramework,Version=v4.5.1": {
"Microsoft.AspNetCore.Antiforgery": {
"type": "Direct",
"requested": "[1.0.0, )",
"resolved": "1.0.0",
"contentHash": "oJnrSvL6S7jM2eD/TR/Kyp/7O6pKvN+8FcnYvUaxaHbKlISwl98o44uidzePBjGxTf4fh9NFEx/q3OuuxAvBzw==",
"dependencies": {
"Microsoft.AspNetCore.DataProtection": "1.0.0",
"Microsoft.AspNetCore.Http.Abstractions": "1.0.0",
"Microsoft.AspNetCore.WebUtilities": "1.0.0",
"Microsoft.Extensions.ObjectPool": "1.0.0"
}
},
"Microsoft.AspNetCore.Http.Abstractions": {
"type": "Direct",
"requested": "[1.0.0, )",
"resolved": "1.0.0",
"contentHash": "OJHlqdJOWKKBfsiVdX4Z4KCNuqvBIu6+1MVKuejRDyHnGyMkNHNoP/dtVzhPqvJXaJg9N4HlD0XNc6GDCFVffg==",
"dependencies": {
"Microsoft.AspNetCore.Http.Features": "1.0.0",
"System.Text.Encodings.Web": "4.0.0"
}
},
"Microsoft.CodeAnalysis.NetAnalyzers": {
"type": "Direct",
"requested": "[9.0.0, )",
"resolved": "9.0.0",
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
},
"Microsoft.NETFramework.ReferenceAssemblies": {
"type": "Direct",
"requested": "[1.0.3, )",
"resolved": "1.0.3",
"contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==",
"dependencies": {
"Microsoft.NETFramework.ReferenceAssemblies.net451": "1.0.3"
}
},
"Microsoft.SourceLink.GitHub": {
"type": "Direct",
"requested": "[8.0.0, )",
"resolved": "8.0.0",
"contentHash": "G5q7OqtwIyGTkeIOAc3u2ZuV/kicQaec5EaRnc0pIeSnh9LUjj+PYQrJYBURvDt7twGl2PKA7nSN0kz1Zw5bnQ==",
"dependencies": {
"Microsoft.Build.Tasks.Git": "8.0.0",
"Microsoft.SourceLink.Common": "8.0.0"
}
},
"CronExpressionDescriptor": {
"type": "Transitive",
"resolved": "1.21.0",
"contentHash": "BDusPksr0codp6mgNbXfw8SG/uJKYdflCDkIaLPKD86YIdHPdzgz7hrbWDmlWpkyzJPPZ5uRDQPLaVUJMQIdBQ=="
},
"Cronos": {
"type": "Transitive",
"resolved": "0.11.1",
"contentHash": "5Ug+giPQITSAdTp/METAsofRSSUi3I5p7t4dlcXnzUgUzwZb4HkOBcYfpHuPwAHrnKJjmyW8amVzLD6mfLpaBg=="
},
"Microsoft.AspNetCore.Cryptography.Internal": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "0btvxwOqYNpKTUQrD7LA3p6Wi0vrhfWGBVqIKPS1KtEdkCv3QoVgFO4eJYuClGDS9NXhqk7TWh46/8x8wtZHaw=="
},
"Microsoft.AspNetCore.DataProtection": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "gt4URT+8ljPk0ePspLqOGPJBm+s6iMvsZqweplhf7wiZSjFiG1uYBNpQ/0dFY7wSx3NMRjekyXzCjvkGAV570g==",
"dependencies": {
"Microsoft.AspNetCore.Cryptography.Internal": "1.0.0",
"Microsoft.AspNetCore.DataProtection.Abstractions": "1.0.0",
"Microsoft.AspNetCore.Hosting.Abstractions": "1.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0",
"Microsoft.Extensions.Logging.Abstractions": "1.0.0",
"Microsoft.Extensions.Options": "1.0.0"
}
},
"Microsoft.AspNetCore.DataProtection.Abstractions": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "h5ycDgkqmRdManmYMQVJgzNI7YtVp2X2/os1cKmdfrpfq+m9L8bMKhbd7PCksoLci+aYTOSn45khPl+hpPb9ug=="
},
"Microsoft.AspNetCore.Hosting.Abstractions": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "8r6qOl1jYyC523ZKM1QNl+6ijIoYWELWm0tpEWqtTIOg9DytHJWshB7usgqiuRmfHXM0EUziR6ouFY7iP7Tuzw==",
"dependencies": {
"Microsoft.AspNetCore.Hosting.Server.Abstractions": "1.0.0",
"Microsoft.AspNetCore.Http.Abstractions": "1.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "1.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0",
"Microsoft.Extensions.FileProviders.Abstractions": "1.0.0",
"Microsoft.Extensions.Logging.Abstractions": "1.0.0"
}
},
"Microsoft.AspNetCore.Hosting.Server.Abstractions": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "sHZyhQEoW15T9E36rfdm5Ux6a6RZB0KNM79ccf2IplWASqmlRGhX4ydU3dzQRLhkHpLx16fnWOL0KScsO6BevQ==",
"dependencies": {
"Microsoft.AspNetCore.Http.Features": "1.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "1.0.0"
}
},
"Microsoft.AspNetCore.Http.Features": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "6x7zgfbTo1gL9xMEb7EMO2ES/48bqwnWyfH09z+ubWhnzxdhHls8rtqstPylu5FPD9nid6Vo2pgDm5vufRAy5Q==",
"dependencies": {
"Microsoft.Extensions.Primitives": "1.0.0"
}
},
"Microsoft.AspNetCore.WebUtilities": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "D0licSnS1JgqQ/gYlN41wXbeYG3dFIdjY781YzMHZ5gBB7kczacshW+H6plZkXRr/cCnAJWGa31o1R8c5GEy/A==",
"dependencies": {
"Microsoft.Extensions.Primitives": "1.0.0",
"System.Buffers": "4.0.0",
"System.Text.Encodings.Web": "4.0.0"
}
},
"Microsoft.Build.Tasks.Git": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "bZKfSIKJRXLTuSzLudMFte/8CempWjVamNUR5eHJizsy+iuOuO/k2gnh7W0dHJmYY0tBf+gUErfluCv5mySAOQ=="
},
"Microsoft.Extensions.Configuration.Abstractions": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "nJ+Et/rnDMDmGhxvFAKdN3va7y+YDPICv1nUEP8I4IKgOkWwr/dCZHMqxVhJFrkbW9ux8Kd7erC4mvxfZh0WnA==",
"dependencies": {
"Microsoft.Extensions.Primitives": "1.0.0",
"System.Linq": "4.1.0"
}
},
"Microsoft.Extensions.DependencyInjection.Abstractions": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "+XwaNo3o9RhLQhUnnOBCaukeRi1X9yYc0Fzye9RlErSflKZdw0VgHtn6rvKo0FTionsW0x8QVULhKH+nkqVjQA==",
"dependencies": {
"System.ComponentModel": "4.0.1",
"System.Diagnostics.Debug": "4.0.11",
"System.Globalization": "4.0.11",
"System.Linq": "4.1.0",
"System.Linq.Expressions": "4.1.0",
"System.Reflection": "4.1.0",
"System.Resources.ResourceManager": "4.0.1"
}
},
"Microsoft.Extensions.FileProviders.Abstractions": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "4jsqTxG3py/hYSsOtZMkNJ2/CQqPdpwyK7bDUkrwHgqowCFSmx/C+R4IzQ+2AK2Up1fVcu+ldC0gktwidL828A==",
"dependencies": {
"Microsoft.Extensions.Primitives": "1.0.0",
"System.IO": "4.1.0",
"System.Resources.ResourceManager": "4.0.1"
}
},
"Microsoft.Extensions.Logging.Abstractions": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "wHT6oY50q36mAXBRKtFaB7u07WxKC5u2M8fi3PqHOOnHyUo9gD0u1TlCNR8UObHQxKMYwqlgI8TLcErpt29n8A==",
"dependencies": {
"System.Collections": "4.0.11",
"System.Collections.Concurrent": "4.0.12",
"System.Diagnostics.Debug": "4.0.11",
"System.Globalization": "4.0.11",
"System.Linq": "4.1.0",
"System.Reflection": "4.1.0",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime.Extensions": "4.1.0",
"System.Runtime.InteropServices": "4.1.0"
}
},
"Microsoft.Extensions.ObjectPool": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "BTXoWSTrv/saLlNSg8l41YOoSKeUUanQLykUqRTtiUJz2xxQOCgm4ckPzrdmSK6w0mdjR2h7IrUDGdBF78Z7yg=="
},
"Microsoft.Extensions.Options": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "SdP3yPKF++JTkoa91pBDiE70uQkR/gdXWzOnMPbSj+eOqY1vgY+b8RVl+gh7TrJ2wlCK2QqnQtvCQlPPZRK36w==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0",
"Microsoft.Extensions.Primitives": "1.0.0",
"System.ComponentModel": "4.0.1",
"System.Diagnostics.Debug": "4.0.11",
"System.Globalization": "4.0.11",
"System.Linq": "4.1.0",
"System.Linq.Expressions": "4.1.0",
"System.Reflection": "4.1.0",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime.Extensions": "4.1.0",
"System.Threading": "4.0.11"
}
},
"Microsoft.Extensions.Primitives": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "3q2vzfKEDjL6JFkRpk5SFA3zarYsO6+ZYgoucNImrUMzDn0mFbEOL5p9oPoWiypwypbJVVjWTf557bXZ0YFLig==",
"dependencies": {
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0"
}
},
"Microsoft.NETFramework.ReferenceAssemblies.net451": {
"type": "Transitive",
"resolved": "1.0.3",
"contentHash": "vVPinxdLrwoX81ApbNIHDBI6qymQEy8eSOxDNBgKJtc2+cifnF0oT1U2d3EFx+V5O68yaqna2myZJNsgKCpVkA=="
},
"Microsoft.Owin": {
"type": "Transitive",
"resolved": "4.2.3",
"contentHash": "uoOKm7Ouj06+ULS7Ss60tRM2E5t0ku7rQ7cJk864jArtE35WTJKMzUxgHxs7gdiqHZYnC3ddZSr9zj8yRjguEA==",
"dependencies": {
"Owin": "1.0.0"
}
},
"Microsoft.SourceLink.Common": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "dk9JPxTCIevS75HyEQ0E4OVAFhB2N+V9ShCXf8Q6FkUQZDkgLI12y679Nym1YqsiSysuQskT7Z+6nUf3yab6Vw=="
},
"Newtonsoft.Json": {
"type": "Transitive",
"resolved": "5.0.1",
"contentHash": "AuSDf0kpGGLSvFmj1Zia8BxTeUCdQ6lB8lWUZRYVXRnAQLmiEGmoP0M+9KHwJNqBW2FiFwSG8Jkz3G7tS6k7MQ=="
},
"Owin": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "OseTFniKmyp76mEzOBwIKGBRS5eMoYNkMKaMXOpxx9jv88+b6mh1rSaw43vjBOItNhaLFG3d0a20PfHyibH5sw=="
},
"System.Buffers": {
"type": "Transitive",
"resolved": "4.0.0",
"contentHash": "msXumHfjjURSkvxUjYuq4N2ghHoRi2VpXcKMA7gK6ujQfU3vGpl+B6ld0ATRg+FZFpRyA6PgEPA+VlIkTeNf2w=="
},
"System.Collections": {
"type": "Transitive",
"resolved": "4.0.11",
"contentHash": "YUJGz6eFKqS0V//mLt25vFGrrCvOnsXjlvFQs+KimpwNxug9x0Pzy4PlFMU3Q2IzqAa9G2L4LsK3+9vCBK7oTg=="
},
"System.Collections.Concurrent": {
"type": "Transitive",
"resolved": "4.0.12",
"contentHash": "2gBcbb3drMLgxlI0fBfxMA31ec6AEyYCHygGse4vxceJan8mRIWeKJ24BFzN7+bi/NFTgdIgufzb94LWO5EERQ=="
},
"System.ComponentModel": {
"type": "Transitive",
"resolved": "4.0.1",
"contentHash": "oBZFnm7seFiVfugsIyOvQCWobNZs7FzqDV/B7tx20Ep/l3UUFCPDkdTnCNaJZTU27zjeODmy2C/cP60u3D4c9w=="
},
"System.Diagnostics.Debug": {
"type": "Transitive",
"resolved": "4.0.11",
"contentHash": "w5U95fVKHY4G8ASs/K5iK3J5LY+/dLFd4vKejsnI/ZhBsWS9hQakfx3Zr7lRWKg4tAw9r4iktyvsTagWkqYCiw=="
},
"System.Globalization": {
"type": "Transitive",
"resolved": "4.0.11",
"contentHash": "B95h0YLEL2oSnwF/XjqSWKnwKOy/01VWkNlsCeMTFJLLabflpGV26nK164eRs5GiaRSBGpOxQ3pKoSnnyZN5pg=="
},
"System.IO": {
"type": "Transitive",
"resolved": "4.1.0",
"contentHash": "3KlTJceQc3gnGIaHZ7UBZO26SHL1SHE4ddrmiwumFnId+CEHP+O8r386tZKaE6zlk5/mF8vifMBzHj9SaXN+mQ=="
},
"System.Linq": {
"type": "Transitive",
"resolved": "4.1.0",
"contentHash": "bQ0iYFOQI0nuTnt+NQADns6ucV4DUvMdwN6CbkB1yj8i7arTGiTN5eok1kQwdnnNWSDZfIUySQY+J3d5KjWn0g=="
},
"System.Linq.Expressions": {
"type": "Transitive",
"resolved": "4.1.0",
"contentHash": "I+y02iqkgmCAyfbqOmSDOgqdZQ5tTj80Akm5BPSS8EeB0VGWdy6X1KCoYe8Pk6pwDoAKZUOdLVxnTJcExiv5zw=="
},
"System.Reflection": {
"type": "Transitive",
"resolved": "4.1.0",
"contentHash": "JCKANJ0TI7kzoQzuwB/OoJANy1Lg338B6+JVacPl4TpUwi3cReg3nMLplMq2uqYfHFQpKIlHAUVAJlImZz/4ng=="
},
"System.Resources.ResourceManager": {
"type": "Transitive",
"resolved": "4.0.1",
"contentHash": "TxwVeUNoTgUOdQ09gfTjvW411MF+w9MBYL7AtNVc+HtBCFlutPLhUCdZjNkjbhj3bNQWMdHboF0KIWEOjJssbA=="
},
"System.Runtime": {
"type": "Transitive",
"resolved": "4.1.0",
"contentHash": "v6c/4Yaa9uWsq+JMhnOFewrYkgdNHNG2eMKuNqRn8P733rNXeRCGvV5FkkjBXn2dbVkPXOsO0xjsEeM1q2zC0g=="
},
"System.Runtime.Extensions": {
"type": "Transitive",
"resolved": "4.1.0",
"contentHash": "CUOHjTT/vgP0qGW22U4/hDlOqXmcPq5YicBaXdUR2UiUoLwBT+olO6we4DVbq57jeX5uXH2uerVZhf0qGj+sVQ=="
},
"System.Runtime.InteropServices": {
"type": "Transitive",
"resolved": "4.1.0",
"contentHash": "16eu3kjHS633yYdkjwShDHZLRNMKVi/s0bY8ODiqJ2RfMhDMAwxZaUaWVnZ2P71kr/or+X9o/xFWtNqz8ivieQ=="
},
"System.Text.Encodings.Web": {
"type": "Transitive",
"resolved": "4.0.0",
"contentHash": "TWZnuiJgPDAEEUfobD7njXvSVR2Toz+jvKWds6yL4oSztmKQfnWzucczjzA+6Dv1bktBdY71sZW1YN0X6m9chQ=="
},
"System.Threading": {
"type": "Transitive",
"resolved": "4.0.11",
"contentHash": "N+3xqIcg3VDKyjwwCGaZ9HawG9aC6cSDI+s7ROma310GQo8vilFZa86hqKppwTHleR/G0sfOzhvgnUxWCR/DrQ=="
},
"hangfire.core": {
"type": "Project",
"dependencies": {
"CronExpressionDescriptor": "[1.21.0, )",
"Cronos": "[0.11.1, )",
"Microsoft.Owin": "[4.2.3, )",
"Newtonsoft.Json": "[5.0.1, )",
"Owin": "[1.0.0, )"
}
},
"hangfire.netcore": {
"type": "Project",
"dependencies": {
"Hangfire.Core": "[1.0.0, )",
"Microsoft.Extensions.DependencyInjection.Abstractions": "[1.0.0, )",
"Microsoft.Extensions.Logging.Abstractions": "[1.0.0, )"
}
}
},
".NETFramework,Version=v4.6.1": {
"Microsoft.AspNetCore.Antiforgery": {
"type": "Direct",
"requested": "[2.0.0, )",
"resolved": "2.0.0",
"contentHash": "BFdjKs38tu7UEHhe1eyZ340+oVfusWhtYGGrOKB/JmjAO8nfaF3NrT6oGUVyXGaZzWxTsdJr9BhsEEN/GoQxkQ==",
"dependencies": {
"Microsoft.AspNetCore.DataProtection": "2.0.0",
"Microsoft.AspNetCore.Http.Abstractions": "2.0.0",
"Microsoft.AspNetCore.Http.Extensions": "2.0.0",
"Microsoft.AspNetCore.WebUtilities": "2.0.0",
"Microsoft.Extensions.ObjectPool": "2.0.0"
}
},
"Microsoft.AspNetCore.Http.Abstractions": {
"type": "Direct",
"requested": "[2.0.0, )",
"resolved": "2.0.0",
"contentHash": "pblZLY7IfNqhQ5wwGQ0vNq2mG6W5YgZI1fk7suEuwZsGxGEADNBAyNlTALM9L8nMXdvbp6aHP/t4wHrFpcL3Sw==",
"dependencies": {
"Microsoft.AspNetCore.Http.Features": "2.0.0",
"System.Text.Encodings.Web": "4.4.0"
}
},
"Microsoft.CodeAnalysis.NetAnalyzers": {
"type": "Direct",
"requested": "[9.0.0, )",
"resolved": "9.0.0",
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
},
"Microsoft.NETFramework.ReferenceAssemblies": {
"type": "Direct",
"requested": "[1.0.3, )",
"resolved": "1.0.3",
"contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==",
"dependencies": {
"Microsoft.NETFramework.ReferenceAssemblies.net461": "1.0.3"
}
},
"Microsoft.SourceLink.GitHub": {
"type": "Direct",
"requested": "[8.0.0, )",
"resolved": "8.0.0",
"contentHash": "G5q7OqtwIyGTkeIOAc3u2ZuV/kicQaec5EaRnc0pIeSnh9LUjj+PYQrJYBURvDt7twGl2PKA7nSN0kz1Zw5bnQ==",
"dependencies": {
"Microsoft.Build.Tasks.Git": "8.0.0",
"Microsoft.SourceLink.Common": "8.0.0"
}
},
"CronExpressionDescriptor": {
"type": "Transitive",
"resolved": "1.21.0",
"contentHash": "BDusPksr0codp6mgNbXfw8SG/uJKYdflCDkIaLPKD86YIdHPdzgz7hrbWDmlWpkyzJPPZ5uRDQPLaVUJMQIdBQ=="
},
"Cronos": {
"type": "Transitive",
"resolved": "0.11.1",
"contentHash": "5Ug+giPQITSAdTp/METAsofRSSUi3I5p7t4dlcXnzUgUzwZb4HkOBcYfpHuPwAHrnKJjmyW8amVzLD6mfLpaBg=="
},
"Microsoft.AspNetCore.Cryptography.Internal": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "SY6GQyZZ5o09rqFmy3nhyJzx3lkFDBl0wO2Kb7EoLCPyH6dC7KB+QXysHfa9P5jHPiYB9VEkcQ9H7kQKcXQ1sw=="
},
"Microsoft.AspNetCore.DataProtection": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "CjRLA26BpKrzBqpw1g9F3rGYNGisPd+zsnYdpJbHsjH4iIbi/OHfgKzGdHZCwmfQWrlL4e8Q0SpS+DMvgf6Jpg==",
"dependencies": {
"Microsoft.AspNetCore.Cryptography.Internal": "2.0.0",
"Microsoft.AspNetCore.DataProtection.Abstractions": "2.0.0",
"Microsoft.AspNetCore.Hosting.Abstractions": "2.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "2.0.0",
"Microsoft.Extensions.Logging.Abstractions": "2.0.0",
"Microsoft.Extensions.Options": "2.0.0",
"Microsoft.Win32.Registry": "4.4.0",
"System.Security.Cryptography.Xml": "4.4.0"
}
},
"Microsoft.AspNetCore.DataProtection.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "BiFPWLZTKw253oQ5lAXcCkFkNFSRNi8fDCUB2yOTQyuYVMR8pnBAhVJ37o/E6bnuFYrE6eFCU4iDYrShmBIBYA=="
},
"Microsoft.AspNetCore.Hosting.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "IR2zlm3d/CmYbkw+cMM7M6mUAi+xsFUPfWqGYqzZVC5o6jX3xD2Z4Uf44UBaWKMBf5Z7q9dodIdXxwFPF2Hxhg==",
"dependencies": {
"Microsoft.AspNetCore.Hosting.Server.Abstractions": "2.0.0",
"Microsoft.AspNetCore.Http.Abstractions": "2.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "2.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "2.0.0",
"Microsoft.Extensions.FileProviders.Abstractions": "2.0.0",
"Microsoft.Extensions.Hosting.Abstractions": "2.0.0",
"Microsoft.Extensions.Logging.Abstractions": "2.0.0"
}
},
"Microsoft.AspNetCore.Hosting.Server.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "v2H65ix/O11HKoxhKQpljtozsD5/1tqeXr3TYnrLgfAPIsp6kTFxIcTSENoxtew7h9X14ENqUf2lBCkyCNRUuQ==",
"dependencies": {
"Microsoft.AspNetCore.Http.Features": "2.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "2.0.0"
}
},
"Microsoft.AspNetCore.Http.Extensions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "lA7Bwvur19MhXrlW0w+WBXONJMSFYY5kNazflz4MNwMZMtzwHxNA6fC5sQsssYd/XvA0gMyKwp52s68uuKLR1w==",
"dependencies": {
"Microsoft.AspNetCore.Http.Abstractions": "2.0.0",
"Microsoft.Extensions.FileProviders.Abstractions": "2.0.0",
"Microsoft.Net.Http.Headers": "2.0.0",
"System.Buffers": "4.4.0"
}
},
"Microsoft.AspNetCore.Http.Features": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "yk62muzFTZTKCQuo3nmVPkPvGBlM2qbdSxbX62TufuONuKQrTGQ/SwhwBbYutk5/YY7u4HETu0n9BKOn7mMgmA==",
"dependencies": {
"Microsoft.Extensions.Primitives": "2.0.0"
}
},
"Microsoft.AspNetCore.WebUtilities": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "RqDEwy7jdHJ0NunWydSzJrpODnsF7NPdB0KaRdG60H1bMEt4DbjcWkUb+XxjZ15uWCMi7clTQClpPuIFLwD1yQ==",
"dependencies": {
"Microsoft.Net.Http.Headers": "2.0.0",
"System.Text.Encodings.Web": "4.4.0"
}
},
"Microsoft.Build.Tasks.Git": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "bZKfSIKJRXLTuSzLudMFte/8CempWjVamNUR5eHJizsy+iuOuO/k2gnh7W0dHJmYY0tBf+gUErfluCv5mySAOQ=="
},
"Microsoft.Extensions.Configuration.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "rHFrXqMIvQNq51H8RYTO4IWmDOYh8NUzyqGlh0xHWTP6XYnKk7Ryinys2uDs+Vu88b3AMlM3gBBSs78m6OQpYQ==",
"dependencies": {
"Microsoft.Extensions.Primitives": "2.0.0"
}
},
"Microsoft.Extensions.DependencyInjection.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "eUdJ0Q/GfVyUJc0Jal5L1QZLceL78pvEM9wEKcHeI24KorqMDoVX+gWsMGLulQMfOwsUaPtkpQM2pFERTzSfSg=="
},
"Microsoft.Extensions.FileProviders.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "Z0AK+hmLO33WAXQ5P1uPzhH7z5yjDHX/XnUefXxE//SyvCb9x4cVjND24dT5566t/yzGp8/WLD7EG9KQKZZklQ==",
"dependencies": {
"Microsoft.Extensions.Primitives": "2.0.0"
}
},
"Microsoft.Extensions.Hosting.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "qPG6Ip/AdHxMJ7j3z8FkkpCbV8yjtiFpf/aOpN3TwfJWbtYpN+BKV8Q+pqPMgk7XZivcju9yARaEVCS++hWopA=="
},
"Microsoft.Extensions.Logging.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "6ZCllUYGFukkymSTx3Yr0G/ajRxoNJp7/FqSxSB4fGISST54ifBhgu4Nc0ItGi3i6DqwuNd8SUyObmiC++AO2Q=="
},
"Microsoft.Extensions.ObjectPool": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "drOmgNZCJiNEqFM/TvyqwtogS8wqoWGQCW5KB/CVGKL6VXHw8OOMdaHyspp8HPstP9UDnrnuq+8eaCaAcQg6tA=="
},
"Microsoft.Extensions.Options": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "sAKBgjl2gWsECBLLR9K54T7/uZaP2n9GhMYHay/oOLfvpvX0+iNAlQ2NJgVE352C9Fs5CDV3VbNTK8T2aNKQFA==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "2.0.0",
"Microsoft.Extensions.Primitives": "2.0.0"
}
},
"Microsoft.Extensions.Primitives": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "ukg53qNlqTrK38WA30b5qhw0GD7y3jdI9PHHASjdKyTcBHTevFM2o23tyk3pWCgAV27Bbkm+CPQ2zUe1ZOuYSA==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "4.4.0"
}
},
"Microsoft.Net.Http.Headers": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "Rm9zeNCWyNrGnysHdRXJpNfeDVlPzzFuidSuRLRNvOrnw71vgNPlR4H9wHo2hG/oSaruukqNjK06MDQqb+eXhA==",
"dependencies": {
"Microsoft.Extensions.Primitives": "2.0.0",
"System.Buffers": "4.4.0"
}
},
"Microsoft.NETFramework.ReferenceAssemblies.net461": {
"type": "Transitive",
"resolved": "1.0.3",
"contentHash": "AmOJZwCqnOCNp6PPcf9joyogScWLtwy0M1WkqfEQ0M9nYwyDD7EX9ZjscKS5iYnyvteX7kzSKFCKt9I9dXA6mA=="
},
"Microsoft.Owin": {
"type": "Transitive",
"resolved": "4.2.3",
"contentHash": "uoOKm7Ouj06+ULS7Ss60tRM2E5t0ku7rQ7cJk864jArtE35WTJKMzUxgHxs7gdiqHZYnC3ddZSr9zj8yRjguEA==",
"dependencies": {
"Owin": "1.0.0"
}
},
"Microsoft.SourceLink.Common": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "dk9JPxTCIevS75HyEQ0E4OVAFhB2N+V9ShCXf8Q6FkUQZDkgLI12y679Nym1YqsiSysuQskT7Z+6nUf3yab6Vw=="
},
"Microsoft.Win32.Registry": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "dA36TlNVn/XfrZtmf0fiI/z1nd3Wfp2QVzTdj26pqgP9LFWq0i1hYEUAW50xUjGFYn1+/cP3KGuxT2Yn1OUNBQ==",
"dependencies": {
"System.Security.AccessControl": "4.4.0",
"System.Security.Principal.Windows": "4.4.0"
}
},
"Newtonsoft.Json": {
"type": "Transitive",
"resolved": "5.0.1",
"contentHash": "AuSDf0kpGGLSvFmj1Zia8BxTeUCdQ6lB8lWUZRYVXRnAQLmiEGmoP0M+9KHwJNqBW2FiFwSG8Jkz3G7tS6k7MQ=="
},
"Owin": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "OseTFniKmyp76mEzOBwIKGBRS5eMoYNkMKaMXOpxx9jv88+b6mh1rSaw43vjBOItNhaLFG3d0a20PfHyibH5sw=="
},
"System.Buffers": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "AwarXzzoDwX6BgrhjoJsk6tUezZEozOT5Y9QKF94Gl4JK91I4PIIBkBco9068Y9/Dra8Dkbie99kXB8+1BaYKw=="
},
"System.Runtime.CompilerServices.Unsafe": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "9dLLuBxr5GNmOfl2jSMcsHuteEg32BEfUotmmUkmZjpR3RpVHE8YQwt0ow3p6prwA1ME8WqDVZqrr8z6H8G+Kw=="
},
"System.Security.AccessControl": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "2NRFPX/V81ucKQmqNgGBZrKGH/5ejsvivSGMRum0SMgPnJxwhuNkzVS1+7gC3R2X0f57CtwrPrXPPSe6nOp82g==",
"dependencies": {
"System.Security.Principal.Windows": "4.4.0"
}
},
"System.Security.Cryptography.Xml": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "1Xubvo4i+K+DO6YzVh6vBKmCl5xx/cAoiJEze6VQ+XwVQU25KQC9pPrmniz2EbbJnmoQ5Rm2FFjHsfQAi0Rs+Q=="
},
"System.Security.Principal.Windows": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "pP+AOzt1o3jESOuLmf52YQTF7H3Ng9hTnrOESQiqsnl2IbBh1HInsAMHYtoh75iUYV0OIkHmjvveraYB6zM97w=="
},
"System.Text.Encodings.Web": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "l/tYeikqMHX2MD2jzrHDfR9ejrpTTF7wvAEbR51AMvzip1wSJgiURbDik4iv/w7ZgytmTD/hlwpplEhF9bmFNw=="
},
"hangfire.core": {
"type": "Project",
"dependencies": {
"CronExpressionDescriptor": "[1.21.0, )",
"Cronos": "[0.11.1, )",
"Microsoft.Owin": "[4.2.3, )",
"Newtonsoft.Json": "[5.0.1, )",
"Owin": "[1.0.0, )"
}
},
"hangfire.netcore": {
"type": "Project",
"dependencies": {
"Hangfire.Core": "[1.0.0, )",
"Microsoft.Extensions.DependencyInjection.Abstractions": "[2.0.0, )",
"Microsoft.Extensions.Hosting.Abstractions": "[2.0.0, )",
"Microsoft.Extensions.Logging.Abstractions": "[2.0.0, )"
}
}
},
".NETStandard,Version=v1.3": {
"Microsoft.AspNetCore.Antiforgery": {
"type": "Direct",
"requested": "[1.0.0, )",
"resolved": "1.0.0",
"contentHash": "oJnrSvL6S7jM2eD/TR/Kyp/7O6pKvN+8FcnYvUaxaHbKlISwl98o44uidzePBjGxTf4fh9NFEx/q3OuuxAvBzw==",
"dependencies": {
"Microsoft.AspNetCore.DataProtection": "1.0.0",
"Microsoft.AspNetCore.Http.Abstractions": "1.0.0",
"Microsoft.AspNetCore.WebUtilities": "1.0.0",
"Microsoft.Extensions.ObjectPool": "1.0.0"
}
},
"Microsoft.AspNetCore.Http.Abstractions": {
"type": "Direct",
"requested": "[1.0.0, )",
"resolved": "1.0.0",
"contentHash": "OJHlqdJOWKKBfsiVdX4Z4KCNuqvBIu6+1MVKuejRDyHnGyMkNHNoP/dtVzhPqvJXaJg9N4HlD0XNc6GDCFVffg==",
"dependencies": {
"Microsoft.AspNetCore.Http.Features": "1.0.0",
"System.Globalization.Extensions": "4.0.1",
"System.Linq.Expressions": "4.1.0",
"System.Reflection.TypeExtensions": "4.1.0",
"System.Runtime.InteropServices": "4.1.0",
"System.Text.Encodings.Web": "4.0.0"
}
},
"Microsoft.CodeAnalysis.NetAnalyzers": {
"type": "Direct",
"requested": "[9.0.0, )",
"resolved": "9.0.0",
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
},
"Microsoft.SourceLink.GitHub": {
"type": "Direct",
"requested": "[8.0.0, )",
"resolved": "8.0.0",
"contentHash": "G5q7OqtwIyGTkeIOAc3u2ZuV/kicQaec5EaRnc0pIeSnh9LUjj+PYQrJYBURvDt7twGl2PKA7nSN0kz1Zw5bnQ==",
"dependencies": {
"Microsoft.Build.Tasks.Git": "8.0.0",
"Microsoft.SourceLink.Common": "8.0.0"
}
},
"NETStandard.Library": {
"type": "Direct",
"requested": "[1.6.1, )",
"resolved": "1.6.1",
"contentHash": "WcSp3+vP+yHNgS8EV5J7pZ9IRpeDuARBPN28by8zqff1wJQXm26PVU8L3/fYLBJVU7BtDyqNVWq2KlCVvSSR4A==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.Win32.Primitives": "4.3.0",
"System.AppContext": "4.3.0",
"System.Collections": "4.3.0",
"System.Collections.Concurrent": "4.3.0",
"System.Console": "4.3.0",
"System.Diagnostics.Debug": "4.3.0",
"System.Diagnostics.Tools": "4.3.0",
"System.Diagnostics.Tracing": "4.3.0",
"System.Globalization": "4.3.0",
"System.Globalization.Calendars": "4.3.0",
"System.IO": "4.3.0",
"System.IO.Compression": "4.3.0",
"System.IO.Compression.ZipFile": "4.3.0",
"System.IO.FileSystem": "4.3.0",
"System.IO.FileSystem.Primitives": "4.3.0",
"System.Linq": "4.3.0",
"System.Linq.Expressions": "4.3.0",
"System.Net.Http": "4.3.0",
"System.Net.Primitives": "4.3.0",
"System.Net.Sockets": "4.3.0",
"System.ObjectModel": "4.3.0",
"System.Reflection": "4.3.0",
"System.Reflection.Extensions": "4.3.0",
"System.Reflection.Primitives": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Runtime.Handles": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Runtime.InteropServices.RuntimeInformation": "4.3.0",
"System.Runtime.Numerics": "4.3.0",
"System.Security.Cryptography.Algorithms": "4.3.0",
"System.Security.Cryptography.Encoding": "4.3.0",
"System.Security.Cryptography.Primitives": "4.3.0",
"System.Security.Cryptography.X509Certificates": "4.3.0",
"System.Text.Encoding": "4.3.0",
"System.Text.Encoding.Extensions": "4.3.0",
"System.Text.RegularExpressions": "4.3.0",
"System.Threading": "4.3.0",
"System.Threading.Tasks": "4.3.0",
"System.Threading.Timer": "4.3.0",
"System.Xml.ReaderWriter": "4.3.0",
"System.Xml.XDocument": "4.3.0"
}
},
"Cronos": {
"type": "Transitive",
"resolved": "0.11.1",
"contentHash": "5Ug+giPQITSAdTp/METAsofRSSUi3I5p7t4dlcXnzUgUzwZb4HkOBcYfpHuPwAHrnKJjmyW8amVzLD6mfLpaBg==",
"dependencies": {
"NETStandard.Library": "1.6.1"
}
},
"Microsoft.AspNetCore.Cryptography.Internal": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "0btvxwOqYNpKTUQrD7LA3p6Wi0vrhfWGBVqIKPS1KtEdkCv3QoVgFO4eJYuClGDS9NXhqk7TWh46/8x8wtZHaw==",
"dependencies": {
"System.Diagnostics.Debug": "4.0.11",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime.Handles": "4.0.1",
"System.Runtime.InteropServices": "4.1.0",
"System.Security.Cryptography.Primitives": "4.0.0",
"System.Threading": "4.0.11"
}
},
"Microsoft.AspNetCore.DataProtection": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "gt4URT+8ljPk0ePspLqOGPJBm+s6iMvsZqweplhf7wiZSjFiG1uYBNpQ/0dFY7wSx3NMRjekyXzCjvkGAV570g==",
"dependencies": {
"Microsoft.AspNetCore.Cryptography.Internal": "1.0.0",
"Microsoft.AspNetCore.DataProtection.Abstractions": "1.0.0",
"Microsoft.AspNetCore.Hosting.Abstractions": "1.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0",
"Microsoft.Extensions.Logging.Abstractions": "1.0.0",
"Microsoft.Extensions.Options": "1.0.0",
"Microsoft.Win32.Registry": "4.0.0",
"System.IO.FileSystem": "4.0.1",
"System.Reflection.Extensions": "4.0.1",
"System.Security.Claims": "4.0.1",
"System.Security.Cryptography.X509Certificates": "4.1.0",
"System.Security.Principal.Windows": "4.0.0",
"System.Xml.XDocument": "4.0.11"
}
},
"Microsoft.AspNetCore.DataProtection.Abstractions": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "h5ycDgkqmRdManmYMQVJgzNI7YtVp2X2/os1cKmdfrpfq+m9L8bMKhbd7PCksoLci+aYTOSn45khPl+hpPb9ug==",
"dependencies": {
"System.ComponentModel": "4.0.1",
"System.Diagnostics.Debug": "4.0.11",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime.Extensions": "4.1.0"
}
},
"Microsoft.AspNetCore.Hosting.Abstractions": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "8r6qOl1jYyC523ZKM1QNl+6ijIoYWELWm0tpEWqtTIOg9DytHJWshB7usgqiuRmfHXM0EUziR6ouFY7iP7Tuzw==",
"dependencies": {
"Microsoft.AspNetCore.Hosting.Server.Abstractions": "1.0.0",
"Microsoft.AspNetCore.Http.Abstractions": "1.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "1.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0",
"Microsoft.Extensions.FileProviders.Abstractions": "1.0.0",
"Microsoft.Extensions.Logging.Abstractions": "1.0.0"
}
},
"Microsoft.AspNetCore.Hosting.Server.Abstractions": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "sHZyhQEoW15T9E36rfdm5Ux6a6RZB0KNM79ccf2IplWASqmlRGhX4ydU3dzQRLhkHpLx16fnWOL0KScsO6BevQ==",
"dependencies": {
"Microsoft.AspNetCore.Http.Features": "1.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "1.0.0"
}
},
"Microsoft.AspNetCore.Http.Features": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "6x7zgfbTo1gL9xMEb7EMO2ES/48bqwnWyfH09z+ubWhnzxdhHls8rtqstPylu5FPD9nid6Vo2pgDm5vufRAy5Q==",
"dependencies": {
"Microsoft.Extensions.Primitives": "1.0.0",
"System.Collections": "4.0.11",
"System.ComponentModel": "4.0.1",
"System.Linq": "4.1.0",
"System.Net.Primitives": "4.0.11",
"System.Net.WebSockets": "4.0.0",
"System.Runtime.Extensions": "4.1.0",
"System.Security.Claims": "4.0.1",
"System.Security.Cryptography.X509Certificates": "4.1.0",
"System.Security.Principal": "4.0.1"
}
},
"Microsoft.AspNetCore.WebUtilities": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "D0licSnS1JgqQ/gYlN41wXbeYG3dFIdjY781YzMHZ5gBB7kczacshW+H6plZkXRr/cCnAJWGa31o1R8c5GEy/A==",
"dependencies": {
"Microsoft.Extensions.Primitives": "1.0.0",
"System.Buffers": "4.0.0",
"System.Collections": "4.0.11",
"System.IO": "4.1.0",
"System.IO.FileSystem": "4.0.1",
"System.Text.Encodings.Web": "4.0.0"
}
},
"Microsoft.Build.Tasks.Git": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "bZKfSIKJRXLTuSzLudMFte/8CempWjVamNUR5eHJizsy+iuOuO/k2gnh7W0dHJmYY0tBf+gUErfluCv5mySAOQ=="
},
"Microsoft.CSharp": {
"type": "Transitive",
"resolved": "4.0.1",
"contentHash": "17h8b5mXa87XYKrrVqdgZ38JefSUqLChUQpXgSnpzsM0nDOhE40FTeNWOJ/YmySGV6tG6T8+hjz6vxbknHJr6A==",
"dependencies": {
"System.Collections": "4.0.11",
"System.Diagnostics.Debug": "4.0.11",
"System.Dynamic.Runtime": "4.0.11",
"System.Globalization": "4.0.11",
"System.Linq": "4.1.0",
"System.Linq.Expressions": "4.1.0",
"System.ObjectModel": "4.0.12",
"System.Reflection": "4.1.0",
"System.Reflection.Extensions": "4.0.1",
"System.Reflection.Primitives": "4.0.1",
"System.Reflection.TypeExtensions": "4.1.0",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0",
"System.Runtime.Extensions": "4.1.0",
"System.Runtime.InteropServices": "4.1.0",
"System.Threading": "4.0.11"
}
},
"Microsoft.Extensions.Configuration.Abstractions": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "nJ+Et/rnDMDmGhxvFAKdN3va7y+YDPICv1nUEP8I4IKgOkWwr/dCZHMqxVhJFrkbW9ux8Kd7erC4mvxfZh0WnA==",
"dependencies": {
"Microsoft.Extensions.Primitives": "1.0.0",
"System.Linq": "4.1.0"
}
},
"Microsoft.Extensions.DependencyInjection.Abstractions": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "+XwaNo3o9RhLQhUnnOBCaukeRi1X9yYc0Fzye9RlErSflKZdw0VgHtn6rvKo0FTionsW0x8QVULhKH+nkqVjQA==",
"dependencies": {
"System.ComponentModel": "4.0.1",
"System.Diagnostics.Debug": "4.0.11",
"System.Globalization": "4.0.11",
"System.Linq": "4.1.0",
"System.Linq.Expressions": "4.1.0",
"System.Reflection": "4.1.0",
"System.Resources.ResourceManager": "4.0.1"
}
},
"Microsoft.Extensions.FileProviders.Abstractions": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "4jsqTxG3py/hYSsOtZMkNJ2/CQqPdpwyK7bDUkrwHgqowCFSmx/C+R4IzQ+2AK2Up1fVcu+ldC0gktwidL828A==",
"dependencies": {
"Microsoft.Extensions.Primitives": "1.0.0",
"System.IO": "4.1.0",
"System.Resources.ResourceManager": "4.0.1"
}
},
"Microsoft.Extensions.Logging.Abstractions": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "wHT6oY50q36mAXBRKtFaB7u07WxKC5u2M8fi3PqHOOnHyUo9gD0u1TlCNR8UObHQxKMYwqlgI8TLcErpt29n8A==",
"dependencies": {
"System.Collections": "4.0.11",
"System.Collections.Concurrent": "4.0.12",
"System.Diagnostics.Debug": "4.0.11",
"System.Globalization": "4.0.11",
"System.Linq": "4.1.0",
"System.Reflection": "4.1.0",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime.Extensions": "4.1.0",
"System.Runtime.InteropServices": "4.1.0"
}
},
"Microsoft.Extensions.ObjectPool": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "BTXoWSTrv/saLlNSg8l41YOoSKeUUanQLykUqRTtiUJz2xxQOCgm4ckPzrdmSK6w0mdjR2h7IrUDGdBF78Z7yg==",
"dependencies": {
"System.Diagnostics.Debug": "4.0.11",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime.Extensions": "4.1.0",
"System.Threading": "4.0.11"
}
},
"Microsoft.Extensions.Options": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "SdP3yPKF++JTkoa91pBDiE70uQkR/gdXWzOnMPbSj+eOqY1vgY+b8RVl+gh7TrJ2wlCK2QqnQtvCQlPPZRK36w==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.0.0",
"Microsoft.Extensions.Primitives": "1.0.0",
"System.ComponentModel": "4.0.1",
"System.Diagnostics.Debug": "4.0.11",
"System.Globalization": "4.0.11",
"System.Linq": "4.1.0",
"System.Linq.Expressions": "4.1.0",
"System.Reflection": "4.1.0",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime.Extensions": "4.1.0",
"System.Threading": "4.0.11"
}
},
"Microsoft.Extensions.Primitives": {
"type": "Transitive",
"resolved": "1.0.0",
"contentHash": "3q2vzfKEDjL6JFkRpk5SFA3zarYsO6+ZYgoucNImrUMzDn0mFbEOL5p9oPoWiypwypbJVVjWTf557bXZ0YFLig==",
"dependencies": {
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0"
}
},
"Microsoft.NETCore.Platforms": {
"type": "Transitive",
"resolved": "1.1.0",
"contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A=="
},
"Microsoft.NETCore.Targets": {
"type": "Transitive",
"resolved": "1.1.0",
"contentHash": "aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg=="
},
"Microsoft.SourceLink.Common": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "dk9JPxTCIevS75HyEQ0E4OVAFhB2N+V9ShCXf8Q6FkUQZDkgLI12y679Nym1YqsiSysuQskT7Z+6nUf3yab6Vw=="
},
"Microsoft.Win32.Primitives": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "9ZQKCWxH7Ijp9BfahvL2Zyf1cJIk8XYLF6Yjzr2yi0b2cOut/HQ31qf1ThHAgCc3WiZMdnWcfJCgN82/0UunxA==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"Microsoft.Win32.Registry": {
"type": "Transitive",
"resolved": "4.0.0",
"contentHash": "q+eLtROUAQ3OxYA5mpQrgyFgzLQxIyrfT2eLpYX5IEPlHmIio2nh4F5bgOaQoGOV865kFKZZso9Oq9RlazvXtg==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.0.1",
"System.Collections": "4.0.11",
"System.Globalization": "4.0.11",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0",
"System.Runtime.Extensions": "4.1.0",
"System.Runtime.Handles": "4.0.1",
"System.Runtime.InteropServices": "4.1.0"
}
},
"Newtonsoft.Json": {
"type": "Transitive",
"resolved": "9.0.1",
"contentHash": "U82mHQSKaIk+lpSVCbWYKNavmNH1i5xrExDEquU1i6I5pV6UMOqRnJRSlKO3cMPfcpp0RgDY+8jUXHdQ4IfXvw==",
"dependencies": {
"Microsoft.CSharp": "4.0.1",
"System.Collections": "4.0.11",
"System.Diagnostics.Debug": "4.0.11",
"System.Dynamic.Runtime": "4.0.11",
"System.Globalization": "4.0.11",
"System.IO": "4.1.0",
"System.Linq": "4.1.0",
"System.Linq.Expressions": "4.1.0",
"System.ObjectModel": "4.0.12",
"System.Reflection": "4.1.0",
"System.Reflection.Extensions": "4.0.1",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0",
"System.Runtime.Extensions": "4.1.0",
"System.Runtime.Serialization.Primitives": "4.1.1",
"System.Text.Encoding": "4.0.11",
"System.Text.Encoding.Extensions": "4.0.11",
"System.Text.RegularExpressions": "4.1.0",
"System.Threading": "4.0.11",
"System.Threading.Tasks": "4.0.11",
"System.Xml.ReaderWriter": "4.0.11",
"System.Xml.XDocument": "4.0.11"
}
},
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "HdSSp5MnJSsg08KMfZThpuLPJpPwE5hBXvHwoKWosyHHfe8Mh5WKT0ylEOf6yNzX6Ngjxe4Whkafh5q7Ymac4Q=="
},
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "+yH1a49wJMy8Zt4yx5RhJrxO/DBDByAiCzNwiETI+1S4mPdCu0OY4djdciC7Vssk0l22wQaDLrXxXkp+3+7bVA=="
},
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "c3YNH1GQJbfIPJeCnr4avseugSqPrxwIqzthYyZDN6EuOyNOzq+y2KSUfRcXauya1sF4foESTgwM5e1A8arAKw=="
},
"runtime.native.System": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "c/qWt2LieNZIj1jGnVNsE2Kl23Ya2aSTBuXMD6V7k9KWr6l16Tqdwq+hJScEpWER9753NWC8h96PaVNY5Ld7Jw==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0"
}
},
"runtime.native.System.IO.Compression": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "INBPonS5QPEgn7naufQFXJEp3zX6L4bwHgJ/ZH78aBTpeNfQMtf7C6VrAFhlq2xxWBveIOWyFzQjJ8XzHMhdOQ==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0"
}
},
"runtime.native.System.Security.Cryptography.OpenSsl": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "NS1U+700m4KFRHR5o4vo9DSlTmlCKu/u7dtE5sUHVIPB+xpXxYQvgBgA6wEIeCz6Yfn0Z52/72WYsToCEPJnrw==",
"dependencies": {
"runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0",
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0"
}
},
"runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "b3pthNgxxFcD+Pc0WSEoC0+md3MyhRS6aCEeenvNE3Fdw1HyJ18ZhRFVJJzIeR/O/jpxPboB805Ho0T3Ul7w8A=="
},
"runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "KeLz4HClKf+nFS7p/6Fi/CqyLXh81FpiGzcmuS8DGi9lUqSnZ6Es23/gv2O+1XVGfrbNmviF7CckBpavkBoIFQ=="
},
"runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "X7IdhILzr4ROXd8mI1BUCQMSHSQwelUlBjF1JyTKCjXaOGn2fB4EKBxQbCK2VjO3WaWIdlXZL3W6TiIVnrhX4g=="
},
"runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "nyFNiCk/r+VOiIqreLix8yN+q3Wga9+SE8BCgkf+2BwEKiNx6DyvFjCgkfV743/grxv8jHJ8gUK4XEQw7yzRYg=="
},
"runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "ytoewC6wGorL7KoCAvRfsgoJPJbNq+64k2SqW6JcOAebWsFUvCCYgfzQMrnpvPiEl4OrblUlhF2ji+Q1+SVLrQ=="
},
"runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "I8bKw2I8k58Wx7fMKQJn2R8lamboCAiHfHeV/pS65ScKWMMI0+wJkLYlEKvgW1D/XvSl/221clBoR2q9QNNM7A=="
},
"runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "VB5cn/7OzUfzdnC8tqAIMQciVLiq2epm2NrAm1E9OjNRyG4lVhfR61SMcLizejzQP8R8Uf/0l5qOIbUEi+RdEg=="
},
"System.AppContext": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "fKC+rmaLfeIzUhagxY17Q9siv/sPrjjKcfNg1Ic8IlQkZLipo8ljcaZQu4VtI4Jqbzjc2VTjzGLF6WmsRXAEgA==",
"dependencies": {
"System.Runtime": "4.3.0"
}
},
"System.Buffers": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "ratu44uTIHgeBeI0dE8DWvmXVBSo4u7ozRZZHOMmK/JPpYyo0dAfgSiHlpiObMQ5lEtEyIXA40sKRYg5J6A8uQ==",
"dependencies": {
"System.Diagnostics.Debug": "4.3.0",
"System.Diagnostics.Tracing": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Threading": "4.3.0"
}
},
"System.Collections": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "3Dcj85/TBdVpL5Zr+gEEBUuFe2icOnLalmEh9hfck1PTYbbyWuZgh4fmm2ysCLTrqLQw6t3TgTyJ+VLp+Qb+Lw==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Collections.Concurrent": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "ztl69Xp0Y/UXCL+3v3tEU+lIy+bvjKNUmopn1wep/a291pVPK7dxBd6T7WnlQqRog+d1a/hSsgRsmFnIBKTPLQ==",
"dependencies": {
"System.Collections": "4.3.0",
"System.Diagnostics.Debug": "4.3.0",
"System.Diagnostics.Tracing": "4.3.0",
"System.Globalization": "4.3.0",
"System.Reflection": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Threading": "4.3.0",
"System.Threading.Tasks": "4.3.0"
}
},
"System.ComponentModel": {
"type": "Transitive",
"resolved": "4.0.1",
"contentHash": "oBZFnm7seFiVfugsIyOvQCWobNZs7FzqDV/B7tx20Ep/l3UUFCPDkdTnCNaJZTU27zjeODmy2C/cP60u3D4c9w==",
"dependencies": {
"System.Runtime": "4.1.0"
}
},
"System.Console": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "DHDrIxiqk1h03m6khKWV2X8p/uvN79rgSqpilL6uzpmSfxfU5ng8VcPtW4qsDsQDHiTv6IPV9TmD5M/vElPNLg==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.IO": "4.3.0",
"System.Runtime": "4.3.0",
"System.Text.Encoding": "4.3.0"
}
},
"System.Diagnostics.Debug": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "ZUhUOdqmaG5Jk3Xdb8xi5kIyQYAA4PnTNlHx1mu9ZY3qv4ELIdKbnL/akbGaKi2RnNUWaZsAs31rvzFdewTj2g==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Diagnostics.DiagnosticSource": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "tD6kosZnTAGdrEa0tZSuFyunMbt/5KYDnHdndJYGqZoNy00XVXyACd5d6KnE1YgYv3ne2CjtAfNXo/fwEhnKUA==",
"dependencies": {
"System.Collections": "4.3.0",
"System.Diagnostics.Tracing": "4.3.0",
"System.Reflection": "4.3.0",
"System.Runtime": "4.3.0",
"System.Threading": "4.3.0"
}
},
"System.Diagnostics.Tools": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "UUvkJfSYJMM6x527dJg2VyWPSRqIVB0Z7dbjHst1zmwTXz5CcXSYJFWRpuigfbO1Lf7yfZiIaEUesfnl/g5EyA==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Diagnostics.Tracing": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "rswfv0f/Cqkh78rA5S8eN8Neocz234+emGCtTF3lxPY96F+mmmUen6tbn0glN6PMvlKQb9bPAY5e9u7fgPTkKw==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Dynamic.Runtime": {
"type": "Transitive",
"resolved": "4.0.11",
"contentHash": "db34f6LHYM0U0JpE+sOmjar27BnqTVkbLJhgfwMpTdgTigG/Hna3m2MYVwnFzGGKnEJk2UXFuoVTr8WUbU91/A==",
"dependencies": {
"System.Collections": "4.0.11",
"System.Diagnostics.Debug": "4.0.11",
"System.Globalization": "4.0.11",
"System.Linq": "4.1.0",
"System.Linq.Expressions": "4.1.0",
"System.ObjectModel": "4.0.12",
"System.Reflection": "4.1.0",
"System.Reflection.Emit": "4.0.1",
"System.Reflection.Emit.ILGeneration": "4.0.1",
"System.Reflection.Primitives": "4.0.1",
"System.Reflection.TypeExtensions": "4.1.0",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0",
"System.Runtime.Extensions": "4.1.0",
"System.Threading": "4.0.11"
}
},
"System.Globalization": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "kYdVd2f2PAdFGblzFswE4hkNANJBKRmsfa2X5LG2AcWE1c7/4t0pYae1L8vfZ5xvE2nK/R9JprtToA61OSHWIg==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Globalization.Calendars": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "GUlBtdOWT4LTV3I+9/PJW+56AnnChTaOqqTLFtdmype/L500M2LIyXgmtd9X2P2VOkmJd5c67H5SaC2QcL1bFA==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Globalization": "4.3.0",
"System.Runtime": "4.3.0"
}
},
"System.Globalization.Extensions": {
"type": "Transitive",
"resolved": "4.0.1",
"contentHash": "KKo23iKeOaIg61SSXwjANN7QYDr/3op3OWGGzDzz7mypx0Za0fZSeG0l6cco8Ntp8YMYkIQcAqlk8yhm5/Uhcg==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.0.1",
"System.Globalization": "4.0.11",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0",
"System.Runtime.Extensions": "4.1.0",
"System.Runtime.InteropServices": "4.1.0"
}
},
"System.IO": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0",
"System.Text.Encoding": "4.3.0",
"System.Threading.Tasks": "4.3.0"
}
},
"System.IO.Compression": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "YHndyoiV90iu4iKG115ibkhrG+S3jBm8Ap9OwoUAzO5oPDAWcr0SFwQFm0HjM8WkEZWo0zvLTyLmbvTkW1bXgg==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"System.Buffers": "4.3.0",
"System.Collections": "4.3.0",
"System.Diagnostics.Debug": "4.3.0",
"System.IO": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Runtime.Handles": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Text.Encoding": "4.3.0",
"System.Threading": "4.3.0",
"System.Threading.Tasks": "4.3.0",
"runtime.native.System": "4.3.0",
"runtime.native.System.IO.Compression": "4.3.0"
}
},
"System.IO.Compression.ZipFile": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "G4HwjEsgIwy3JFBduZ9quBkAu+eUwjIdJleuNSgmUojbH6O3mlvEIme+GHx/cLlTAPcrnnL7GqvB9pTlWRfhOg==",
"dependencies": {
"System.Buffers": "4.3.0",
"System.IO": "4.3.0",
"System.IO.Compression": "4.3.0",
"System.IO.FileSystem": "4.3.0",
"System.IO.FileSystem.Primitives": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Text.Encoding": "4.3.0"
}
},
"System.IO.FileSystem": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "3wEMARTnuio+ulnvi+hkRNROYwa1kylvYahhcLk4HSoVdl+xxTFVeVlYOfLwrDPImGls0mDqbMhrza8qnWPTdA==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.IO": "4.3.0",
"System.IO.FileSystem.Primitives": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Handles": "4.3.0",
"System.Text.Encoding": "4.3.0",
"System.Threading.Tasks": "4.3.0"
}
},
"System.IO.FileSystem.Primitives": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "6QOb2XFLch7bEc4lIcJH49nJN2HV+OC3fHDgsLVsBVBk3Y4hFAnOBGzJ2lUu7CyDDFo9IBWkSsnbkT6IBwwiMw==",
"dependencies": {
"System.Runtime": "4.3.0"
}
},
"System.Linq": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "5DbqIUpsDp0dFftytzuMmc0oeMdQwjcP/EWxsksIz/w1TcFRkZ3yKKz0PqiYFMmEwPSWw+qNVqD7PJ889JzHbw==",
"dependencies": {
"System.Collections": "4.3.0",
"System.Runtime": "4.3.0"
}
},
"System.Linq.Expressions": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "PGKkrd2khG4CnlyJwxwwaWWiSiWFNBGlgXvJpeO0xCXrZ89ODrQ6tjEWS/kOqZ8GwEOUATtKtzp1eRgmYNfclg==",
"dependencies": {
"System.Reflection": "4.3.0",
"System.Runtime": "4.3.0"
}
},
"System.Net.Http": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "sYg+FtILtRQuYWSIAuNOELwVuVsxVyJGWQyOnlAzhV4xvhyFnON1bAzYYC+jjRW8JREM45R0R5Dgi8MTC5sEwA==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.Win32.Primitives": "4.3.0",
"System.Collections": "4.3.0",
"System.Diagnostics.Debug": "4.3.0",
"System.Diagnostics.DiagnosticSource": "4.3.0",
"System.Diagnostics.Tracing": "4.3.0",
"System.Globalization": "4.3.0",
"System.IO": "4.3.0",
"System.IO.Compression": "4.3.0",
"System.Net.Primitives": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Runtime.Handles": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Security.Cryptography.X509Certificates": "4.3.0",
"System.Text.Encoding": "4.3.0",
"System.Threading": "4.3.0",
"System.Threading.Tasks": "4.3.0"
}
},
"System.Net.Primitives": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "qOu+hDwFwoZPbzPvwut2qATe3ygjeQBDQj91xlsaqGFQUI5i4ZnZb8yyQuLGpDGivEPIt8EJkd1BVzVoP31FXA==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0",
"System.Runtime.Handles": "4.3.0"
}
},
"System.Net.Sockets": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "m6icV6TqQOAdgt5N/9I5KNpjom/5NFtkmGseEH+AK/hny8XrytLH3+b5M8zL/Ycg3fhIocFpUMyl/wpFnVRvdw==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.IO": "4.3.0",
"System.Net.Primitives": "4.3.0",
"System.Runtime": "4.3.0",
"System.Threading.Tasks": "4.3.0"
}
},
"System.Net.WebSockets": {
"type": "Transitive",
"resolved": "4.0.0",
"contentHash": "2KJo8hir6Edi9jnMDAMhiJoI691xRBmKcbNpwjrvpIMOCTYOtBpSsSEGBxBDV7PKbasJNaFp1+PZz1D7xS41Hg==",
"dependencies": {
"Microsoft.Win32.Primitives": "4.0.1",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0",
"System.Threading.Tasks": "4.0.11"
}
},
"System.ObjectModel": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "bdX+80eKv9bN6K4N+d77OankKHGn6CH711a6fcOpMQu2Fckp/Ft4L/kW9WznHpyR0NRAvJutzOMHNNlBGvxQzQ==",
"dependencies": {
"System.Collections": "4.3.0",
"System.Diagnostics.Debug": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Threading": "4.3.0"
}
},
"System.Reflection": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.IO": "4.3.0",
"System.Reflection.Primitives": "4.3.0",
"System.Runtime": "4.3.0"
}
},
"System.Reflection.Emit": {
"type": "Transitive",
"resolved": "4.0.1",
"contentHash": "P2wqAj72fFjpP6wb9nSfDqNBMab+2ovzSDzUZK7MVIm54tBJEPr9jWfSjjoTpPwj1LeKcmX3vr0ttyjSSFM47g==",
"dependencies": {
"System.IO": "4.1.0",
"System.Reflection": "4.1.0",
"System.Reflection.Emit.ILGeneration": "4.0.1",
"System.Reflection.Primitives": "4.0.1",
"System.Runtime": "4.1.0"
}
},
"System.Reflection.Emit.ILGeneration": {
"type": "Transitive",
"resolved": "4.0.1",
"contentHash": "Ov6dU8Bu15Bc7zuqttgHF12J5lwSWyTf1S+FJouUXVMSqImLZzYaQ+vRr1rQ0OZ0HqsrwWl4dsKHELckQkVpgA==",
"dependencies": {
"System.Reflection": "4.1.0",
"System.Reflection.Primitives": "4.0.1",
"System.Runtime": "4.1.0"
}
},
"System.Reflection.Extensions": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "rJkrJD3kBI5B712aRu4DpSIiHRtr6QlfZSQsb0hYHrDCZORXCFjQfoipo2LaMUHoT9i1B7j7MnfaEKWDFmFQNQ==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Reflection": "4.3.0",
"System.Runtime": "4.3.0"
}
},
"System.Reflection.Primitives": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Reflection.TypeExtensions": {
"type": "Transitive",
"resolved": "4.1.0",
"contentHash": "tsQ/ptQ3H5FYfON8lL4MxRk/8kFyE0A+tGPXmVP967cT/gzLHYxIejIYSxp4JmIeFHVP78g/F2FE1mUUTbDtrg==",
"dependencies": {
"System.Reflection": "4.1.0",
"System.Runtime": "4.1.0"
}
},
"System.Resources.ResourceManager": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "/zrcPkkWdZmI4F92gL/TPumP98AVDu/Wxr3CSJGQQ+XN6wbRZcyfSKVoPo17ilb3iOr0cCRqJInGwNMolqhS8A==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Globalization": "4.3.0",
"System.Reflection": "4.3.0",
"System.Runtime": "4.3.0"
}
},
"System.Runtime": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0"
}
},
"System.Runtime.Extensions": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "guW0uK0fn5fcJJ1tJVXYd7/1h5F+pea1r7FLSOz/f8vPEqbR2ZAknuRDvTQ8PzAilDveOxNjSfr0CHfIQfFk8g==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Runtime.Handles": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "OKiSUN7DmTWeYb3l51A7EYaeNMnvxwE249YtZz7yooT4gOZhmTjIn48KgSsw2k2lYdLgTKNJw/ZIfSElwDRVgg==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Runtime.InteropServices": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "uv1ynXqiMK8mp1GM3jDqPCFN66eJ5w5XNomaK2XD+TuCroNTLFGeZ+WCmBMcBDyTFKou3P6cR6J/QsaqDp7fGQ==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Reflection": "4.3.0",
"System.Reflection.Primitives": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Handles": "4.3.0"
}
},
"System.Runtime.InteropServices.RuntimeInformation": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "cbz4YJMqRDR7oLeMRbdYv7mYzc++17lNhScCX0goO2XpGWdvAt60CGN+FHdePUEHCe/Jy9jUlvNAiNdM+7jsOw==",
"dependencies": {
"System.Reflection": "4.3.0",
"System.Reflection.Extensions": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Threading": "4.3.0",
"runtime.native.System": "4.3.0"
}
},
"System.Runtime.Numerics": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "yMH+MfdzHjy17l2KESnPiF2dwq7T+xLnSJar7slyimAkUh/gTrS9/UQOtv7xarskJ2/XDSNvfLGOBQPjL7PaHQ==",
"dependencies": {
"System.Globalization": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0"
}
},
"System.Runtime.Serialization.Primitives": {
"type": "Transitive",
"resolved": "4.1.1",
"contentHash": "HZ6Du5QrTG8MNJbf4e4qMO3JRAkIboGT5Fk804uZtg3Gq516S7hAqTm2UZKUHa7/6HUGdVy3AqMQKbns06G/cg==",
"dependencies": {
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0"
}
},
"System.Security.Claims": {
"type": "Transitive",
"resolved": "4.0.1",
"contentHash": "4Jlp0OgJLS/Voj1kyFP6MJlIYp3crgfH8kNQk2p7+4JYfc1aAmh9PZyAMMbDhuoolGNtux9HqSOazsioRiDvCw==",
"dependencies": {
"System.Collections": "4.0.11",
"System.Globalization": "4.0.11",
"System.IO": "4.1.0",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0",
"System.Runtime.Extensions": "4.1.0",
"System.Security.Principal": "4.0.1"
}
},
"System.Security.Cryptography.Algorithms": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "W1kd2Y8mYSCgc3ULTAZ0hOP2dSdG5YauTb1089T0/kRcN2MpSAW1izOFROrJgxSlMn3ArsgHXagigyi+ibhevg==",
"dependencies": {
"System.IO": "4.3.0",
"System.Runtime": "4.3.0",
"System.Security.Cryptography.Primitives": "4.3.0"
}
},
"System.Security.Cryptography.Encoding": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "1DEWjZZly9ae9C79vFwqaO5kaOlI5q+3/55ohmq/7dpDyDfc8lYe7YVxJUZ5MF/NtbkRjwFRo14yM4OEo9EmDw==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"System.Collections": "4.3.0",
"System.Collections.Concurrent": "4.3.0",
"System.Linq": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Runtime.Handles": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Security.Cryptography.Primitives": "4.3.0",
"System.Text.Encoding": "4.3.0",
"runtime.native.System.Security.Cryptography.OpenSsl": "4.3.0"
}
},
"System.Security.Cryptography.Primitives": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "7bDIyVFNL/xKeFHjhobUAQqSpJq9YTOpbEs6mR233Et01STBMXNAc/V+BM6dwYGc95gVh/Zf+iVXWzj3mE8DWg==",
"dependencies": {
"System.Diagnostics.Debug": "4.3.0",
"System.Globalization": "4.3.0",
"System.IO": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Threading": "4.3.0",
"System.Threading.Tasks": "4.3.0"
}
},
"System.Security.Cryptography.X509Certificates": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "t2Tmu6Y2NtJ2um0RtcuhP7ZdNNxXEgUm2JeoA/0NvlMjAhKCnM1NX07TDl3244mVp3QU6LPEhT3HTtH1uF7IYw==",
"dependencies": {
"System.Runtime": "4.3.0",
"System.Runtime.Handles": "4.3.0",
"System.Security.Cryptography.Algorithms": "4.3.0",
"System.Security.Cryptography.Encoding": "4.3.0"
}
},
"System.Security.Principal": {
"type": "Transitive",
"resolved": "4.0.1",
"contentHash": "On+SKhXY5rzxh/S8wlH1Rm0ogBlu7zyHNxeNBiXauNrhHRXAe9EuX8Yl5IOzLPGU5Z4kLWHMvORDOCG8iu9hww==",
"dependencies": {
"System.Runtime": "4.1.0"
}
},
"System.Security.Principal.Windows": {
"type": "Transitive",
"resolved": "4.0.0",
"contentHash": "iFx15AF3RMEPZn3COh8+Bb2Thv2zsmLd93RchS1b8Mj5SNYeGqbYNCSn5AES1+gq56p4ujGZPrl0xN7ngkXOHg==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.0.1",
"Microsoft.Win32.Primitives": "4.0.1",
"System.Collections": "4.0.11",
"System.Diagnostics.Debug": "4.0.11",
"System.Reflection": "4.1.0",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0",
"System.Runtime.Extensions": "4.1.0",
"System.Runtime.Handles": "4.0.1",
"System.Runtime.InteropServices": "4.1.0",
"System.Security.Claims": "4.0.1",
"System.Security.Principal": "4.0.1",
"System.Text.Encoding": "4.0.11",
"System.Threading": "4.0.11"
}
},
"System.Text.Encoding": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Text.Encoding.Extensions": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "YVMK0Bt/A43RmwizJoZ22ei2nmrhobgeiYwFzC4YAN+nue8RF6djXDMog0UCn+brerQoYVyaS+ghy9P/MUVcmw==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0",
"System.Text.Encoding": "4.3.0"
}
},
"System.Text.Encodings.Web": {
"type": "Transitive",
"resolved": "4.0.0",
"contentHash": "TWZnuiJgPDAEEUfobD7njXvSVR2Toz+jvKWds6yL4oSztmKQfnWzucczjzA+6Dv1bktBdY71sZW1YN0X6m9chQ==",
"dependencies": {
"System.Diagnostics.Debug": "4.0.11",
"System.IO": "4.1.0",
"System.Reflection": "4.1.0",
"System.Resources.ResourceManager": "4.0.1",
"System.Runtime": "4.1.0",
"System.Runtime.Extensions": "4.1.0",
"System.Threading": "4.0.11"
}
},
"System.Text.RegularExpressions": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "RpT2DA+L660cBt1FssIE9CAGpLFdFPuheB7pLpKpn6ZXNby7jDERe8Ua/Ne2xGiwLVG2JOqziiaVCGDon5sKFA==",
"dependencies": {
"System.Runtime": "4.3.0"
}
},
"System.Threading": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "VkUS0kOBcUf3Wwm0TSbrevDDZ6BlM+b/HRiapRFWjM5O0NS0LviG0glKmFK+hhPDd1XFeSdU1GmlLhb2CoVpIw==",
"dependencies": {
"System.Runtime": "4.3.0",
"System.Threading.Tasks": "4.3.0"
}
},
"System.Threading.Tasks": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Threading.Tasks.Extensions": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "npvJkVKl5rKXrtl1Kkm6OhOUaYGEiF9wFbppFRWSMoApKzt2PiPHT2Bb8a5sAWxprvdOAtvaARS9QYMznEUtug==",
"dependencies": {
"System.Collections": "4.3.0",
"System.Runtime": "4.3.0",
"System.Threading.Tasks": "4.3.0"
}
},
"System.Threading.Thread": {
"type": "Transitive",
"resolved": "4.0.0",
"contentHash": "gIdJqDXlOr5W9zeqFErLw3dsOsiShSCYtF9SEHitACycmvNvY8odf9kiKvp6V7aibc8C4HzzNBkWXjyfn7plbQ==",
"dependencies": {
"System.Runtime": "4.1.0"
}
},
"System.Threading.ThreadPool": {
"type": "Transitive",
"resolved": "4.0.10",
"contentHash": "IMXgB5Vf/5Qw1kpoVgJMOvUO1l32aC+qC3OaIZjWJOjvcxuxNWOK2ZTWWYXfij22NHxT2j1yWX5vlAeQWld9vA==",
"dependencies": {
"System.Runtime": "4.1.0",
"System.Runtime.Handles": "4.0.1"
}
},
"System.Threading.Timer": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "Z6YfyYTCg7lOZjJzBjONJTFKGN9/NIYKSxhU5GRd+DTwHSZyvWp1xuI5aR+dLg+ayyC5Xv57KiY4oJ0tMO89fQ==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0",
"Microsoft.NETCore.Targets": "1.1.0",
"System.Runtime": "4.3.0"
}
},
"System.Xml.ReaderWriter": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "GrprA+Z0RUXaR4N7/eW71j1rgMnEnEVlgii49GZyAjTH7uliMnrOU3HNFBr6fEDBCJCIdlVNq9hHbaDR621XBA==",
"dependencies": {
"System.Collections": "4.3.0",
"System.Diagnostics.Debug": "4.3.0",
"System.Globalization": "4.3.0",
"System.IO": "4.3.0",
"System.IO.FileSystem": "4.3.0",
"System.IO.FileSystem.Primitives": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Text.Encoding": "4.3.0",
"System.Text.Encoding.Extensions": "4.3.0",
"System.Text.RegularExpressions": "4.3.0",
"System.Threading.Tasks": "4.3.0",
"System.Threading.Tasks.Extensions": "4.3.0"
}
},
"System.Xml.XDocument": {
"type": "Transitive",
"resolved": "4.3.0",
"contentHash": "5zJ0XDxAIg8iy+t4aMnQAu0MqVbqyvfoUVl1yDV61xdo3Vth45oA2FoY4pPkxYAH5f8ixpmTqXeEIya95x0aCQ==",
"dependencies": {
"System.Collections": "4.3.0",
"System.Diagnostics.Debug": "4.3.0",
"System.Diagnostics.Tools": "4.3.0",
"System.Globalization": "4.3.0",
"System.IO": "4.3.0",
"System.Reflection": "4.3.0",
"System.Resources.ResourceManager": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.Extensions": "4.3.0",
"System.Text.Encoding": "4.3.0",
"System.Threading": "4.3.0",
"System.Xml.ReaderWriter": "4.3.0"
}
},
"hangfire.core": {
"type": "Project",
"dependencies": {
"Cronos": "[0.11.1, )",
"NETStandard.Library": "[1.6.1, )",
"Newtonsoft.Json": "[9.0.1, )",
"System.Threading.Thread": "[4.0.0, )",
"System.Threading.ThreadPool": "[4.0.10, )"
}
},
"hangfire.netcore": {
"type": "Project",
"dependencies": {
"Hangfire.Core": "[1.0.0, )",
"Microsoft.Extensions.DependencyInjection.Abstractions": "[1.0.0, )",
"Microsoft.Extensions.Logging.Abstractions": "[1.0.0, )",
"NETStandard.Library": "[1.6.1, )"
}
}
},
".NETStandard,Version=v2.0": {
"Microsoft.AspNetCore.Antiforgery": {
"type": "Direct",
"requested": "[2.0.0, )",
"resolved": "2.0.0",
"contentHash": "BFdjKs38tu7UEHhe1eyZ340+oVfusWhtYGGrOKB/JmjAO8nfaF3NrT6oGUVyXGaZzWxTsdJr9BhsEEN/GoQxkQ==",
"dependencies": {
"Microsoft.AspNetCore.DataProtection": "2.0.0",
"Microsoft.AspNetCore.Http.Abstractions": "2.0.0",
"Microsoft.AspNetCore.Http.Extensions": "2.0.0",
"Microsoft.AspNetCore.WebUtilities": "2.0.0",
"Microsoft.Extensions.ObjectPool": "2.0.0"
}
},
"Microsoft.AspNetCore.Http.Abstractions": {
"type": "Direct",
"requested": "[2.0.0, )",
"resolved": "2.0.0",
"contentHash": "pblZLY7IfNqhQ5wwGQ0vNq2mG6W5YgZI1fk7suEuwZsGxGEADNBAyNlTALM9L8nMXdvbp6aHP/t4wHrFpcL3Sw==",
"dependencies": {
"Microsoft.AspNetCore.Http.Features": "2.0.0",
"System.Text.Encodings.Web": "4.4.0"
}
},
"Microsoft.CodeAnalysis.NetAnalyzers": {
"type": "Direct",
"requested": "[9.0.0, )",
"resolved": "9.0.0",
"contentHash": "JajbvkrBgtdRghavIjcJuNHMOja4lqBmEezbhZyqWPYh2cpLhT5mPpfC7NQVDO4IehWQum9t/nwF4v+qQGtYWg=="
},
"Microsoft.SourceLink.GitHub": {
"type": "Direct",
"requested": "[8.0.0, )",
"resolved": "8.0.0",
"contentHash": "G5q7OqtwIyGTkeIOAc3u2ZuV/kicQaec5EaRnc0pIeSnh9LUjj+PYQrJYBURvDt7twGl2PKA7nSN0kz1Zw5bnQ==",
"dependencies": {
"Microsoft.Build.Tasks.Git": "8.0.0",
"Microsoft.SourceLink.Common": "8.0.0"
}
},
"NETStandard.Library": {
"type": "Direct",
"requested": "[2.0.3, )",
"resolved": "2.0.3",
"contentHash": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0"
}
},
"Cronos": {
"type": "Transitive",
"resolved": "0.11.1",
"contentHash": "5Ug+giPQITSAdTp/METAsofRSSUi3I5p7t4dlcXnzUgUzwZb4HkOBcYfpHuPwAHrnKJjmyW8amVzLD6mfLpaBg=="
},
"Microsoft.AspNetCore.Cryptography.Internal": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "SY6GQyZZ5o09rqFmy3nhyJzx3lkFDBl0wO2Kb7EoLCPyH6dC7KB+QXysHfa9P5jHPiYB9VEkcQ9H7kQKcXQ1sw=="
},
"Microsoft.AspNetCore.DataProtection": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "CjRLA26BpKrzBqpw1g9F3rGYNGisPd+zsnYdpJbHsjH4iIbi/OHfgKzGdHZCwmfQWrlL4e8Q0SpS+DMvgf6Jpg==",
"dependencies": {
"Microsoft.AspNetCore.Cryptography.Internal": "2.0.0",
"Microsoft.AspNetCore.DataProtection.Abstractions": "2.0.0",
"Microsoft.AspNetCore.Hosting.Abstractions": "2.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "2.0.0",
"Microsoft.Extensions.Logging.Abstractions": "2.0.0",
"Microsoft.Extensions.Options": "2.0.0",
"Microsoft.Win32.Registry": "4.4.0",
"System.Security.Cryptography.Xml": "4.4.0"
}
},
"Microsoft.AspNetCore.DataProtection.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "BiFPWLZTKw253oQ5lAXcCkFkNFSRNi8fDCUB2yOTQyuYVMR8pnBAhVJ37o/E6bnuFYrE6eFCU4iDYrShmBIBYA=="
},
"Microsoft.AspNetCore.Hosting.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "IR2zlm3d/CmYbkw+cMM7M6mUAi+xsFUPfWqGYqzZVC5o6jX3xD2Z4Uf44UBaWKMBf5Z7q9dodIdXxwFPF2Hxhg==",
"dependencies": {
"Microsoft.AspNetCore.Hosting.Server.Abstractions": "2.0.0",
"Microsoft.AspNetCore.Http.Abstractions": "2.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "2.0.0",
"Microsoft.Extensions.DependencyInjection.Abstractions": "2.0.0",
"Microsoft.Extensions.FileProviders.Abstractions": "2.0.0",
"Microsoft.Extensions.Hosting.Abstractions": "2.0.0",
"Microsoft.Extensions.Logging.Abstractions": "2.0.0"
}
},
"Microsoft.AspNetCore.Hosting.Server.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "v2H65ix/O11HKoxhKQpljtozsD5/1tqeXr3TYnrLgfAPIsp6kTFxIcTSENoxtew7h9X14ENqUf2lBCkyCNRUuQ==",
"dependencies": {
"Microsoft.AspNetCore.Http.Features": "2.0.0",
"Microsoft.Extensions.Configuration.Abstractions": "2.0.0"
}
},
"Microsoft.AspNetCore.Http.Extensions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "lA7Bwvur19MhXrlW0w+WBXONJMSFYY5kNazflz4MNwMZMtzwHxNA6fC5sQsssYd/XvA0gMyKwp52s68uuKLR1w==",
"dependencies": {
"Microsoft.AspNetCore.Http.Abstractions": "2.0.0",
"Microsoft.Extensions.FileProviders.Abstractions": "2.0.0",
"Microsoft.Net.Http.Headers": "2.0.0",
"System.Buffers": "4.4.0"
}
},
"Microsoft.AspNetCore.Http.Features": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "yk62muzFTZTKCQuo3nmVPkPvGBlM2qbdSxbX62TufuONuKQrTGQ/SwhwBbYutk5/YY7u4HETu0n9BKOn7mMgmA==",
"dependencies": {
"Microsoft.Extensions.Primitives": "2.0.0"
}
},
"Microsoft.AspNetCore.WebUtilities": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "RqDEwy7jdHJ0NunWydSzJrpODnsF7NPdB0KaRdG60H1bMEt4DbjcWkUb+XxjZ15uWCMi7clTQClpPuIFLwD1yQ==",
"dependencies": {
"Microsoft.Net.Http.Headers": "2.0.0",
"System.Text.Encodings.Web": "4.4.0"
}
},
"Microsoft.Build.Tasks.Git": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "bZKfSIKJRXLTuSzLudMFte/8CempWjVamNUR5eHJizsy+iuOuO/k2gnh7W0dHJmYY0tBf+gUErfluCv5mySAOQ=="
},
"Microsoft.CSharp": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "vvVR/B08YVghQ4jHEloxqw2ZWzEGE1AOA5E0DioUM3ujbXz6FD3AfB/0Jl2ohJPd0nXYGwmPe1En6HTsSriq1A=="
},
"Microsoft.Extensions.Configuration.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "rHFrXqMIvQNq51H8RYTO4IWmDOYh8NUzyqGlh0xHWTP6XYnKk7Ryinys2uDs+Vu88b3AMlM3gBBSs78m6OQpYQ==",
"dependencies": {
"Microsoft.Extensions.Primitives": "2.0.0"
}
},
"Microsoft.Extensions.DependencyInjection.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "eUdJ0Q/GfVyUJc0Jal5L1QZLceL78pvEM9wEKcHeI24KorqMDoVX+gWsMGLulQMfOwsUaPtkpQM2pFERTzSfSg=="
},
"Microsoft.Extensions.FileProviders.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "Z0AK+hmLO33WAXQ5P1uPzhH7z5yjDHX/XnUefXxE//SyvCb9x4cVjND24dT5566t/yzGp8/WLD7EG9KQKZZklQ==",
"dependencies": {
"Microsoft.Extensions.Primitives": "2.0.0"
}
},
"Microsoft.Extensions.Hosting.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "qPG6Ip/AdHxMJ7j3z8FkkpCbV8yjtiFpf/aOpN3TwfJWbtYpN+BKV8Q+pqPMgk7XZivcju9yARaEVCS++hWopA=="
},
"Microsoft.Extensions.Logging.Abstractions": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "6ZCllUYGFukkymSTx3Yr0G/ajRxoNJp7/FqSxSB4fGISST54ifBhgu4Nc0ItGi3i6DqwuNd8SUyObmiC++AO2Q=="
},
"Microsoft.Extensions.ObjectPool": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "drOmgNZCJiNEqFM/TvyqwtogS8wqoWGQCW5KB/CVGKL6VXHw8OOMdaHyspp8HPstP9UDnrnuq+8eaCaAcQg6tA=="
},
"Microsoft.Extensions.Options": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "sAKBgjl2gWsECBLLR9K54T7/uZaP2n9GhMYHay/oOLfvpvX0+iNAlQ2NJgVE352C9Fs5CDV3VbNTK8T2aNKQFA==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "2.0.0",
"Microsoft.Extensions.Primitives": "2.0.0"
}
},
"Microsoft.Extensions.Primitives": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "ukg53qNlqTrK38WA30b5qhw0GD7y3jdI9PHHASjdKyTcBHTevFM2o23tyk3pWCgAV27Bbkm+CPQ2zUe1ZOuYSA==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "4.4.0"
}
},
"Microsoft.Net.Http.Headers": {
"type": "Transitive",
"resolved": "2.0.0",
"contentHash": "Rm9zeNCWyNrGnysHdRXJpNfeDVlPzzFuidSuRLRNvOrnw71vgNPlR4H9wHo2hG/oSaruukqNjK06MDQqb+eXhA==",
"dependencies": {
"Microsoft.Extensions.Primitives": "2.0.0",
"System.Buffers": "4.4.0"
}
},
"Microsoft.NETCore.Platforms": {
"type": "Transitive",
"resolved": "1.1.0",
"contentHash": "kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A=="
},
"Microsoft.SourceLink.Common": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "dk9JPxTCIevS75HyEQ0E4OVAFhB2N+V9ShCXf8Q6FkUQZDkgLI12y679Nym1YqsiSysuQskT7Z+6nUf3yab6Vw=="
},
"Microsoft.Win32.Registry": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "dA36TlNVn/XfrZtmf0fiI/z1nd3Wfp2QVzTdj26pqgP9LFWq0i1hYEUAW50xUjGFYn1+/cP3KGuxT2Yn1OUNBQ==",
"dependencies": {
"System.Security.AccessControl": "4.4.0",
"System.Security.Principal.Windows": "4.4.0"
}
},
"Newtonsoft.Json": {
"type": "Transitive",
"resolved": "11.0.1",
"contentHash": "pNN4l+J6LlpIvHOeNdXlwxv39NPJ2B5klz+Rd2UQZIx30Squ5oND1Yy3wEAUoKn0GPUj6Yxt9lxlYWQqfZcvKg=="
},
"System.Buffers": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "AwarXzzoDwX6BgrhjoJsk6tUezZEozOT5Y9QKF94Gl4JK91I4PIIBkBco9068Y9/Dra8Dkbie99kXB8+1BaYKw=="
},
"System.Runtime.CompilerServices.Unsafe": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "9dLLuBxr5GNmOfl2jSMcsHuteEg32BEfUotmmUkmZjpR3RpVHE8YQwt0ow3p6prwA1ME8WqDVZqrr8z6H8G+Kw=="
},
"System.Security.AccessControl": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "2NRFPX/V81ucKQmqNgGBZrKGH/5ejsvivSGMRum0SMgPnJxwhuNkzVS1+7gC3R2X0f57CtwrPrXPPSe6nOp82g==",
"dependencies": {
"System.Security.Principal.Windows": "4.4.0"
}
},
"System.Security.Cryptography.Xml": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "1Xubvo4i+K+DO6YzVh6vBKmCl5xx/cAoiJEze6VQ+XwVQU25KQC9pPrmniz2EbbJnmoQ5Rm2FFjHsfQAi0Rs+Q=="
},
"System.Security.Principal.Windows": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "pP+AOzt1o3jESOuLmf52YQTF7H3Ng9hTnrOESQiqsnl2IbBh1HInsAMHYtoh75iUYV0OIkHmjvveraYB6zM97w=="
},
"System.Text.Encodings.Web": {
"type": "Transitive",
"resolved": "4.4.0",
"contentHash": "l/tYeikqMHX2MD2jzrHDfR9ejrpTTF7wvAEbR51AMvzip1wSJgiURbDik4iv/w7ZgytmTD/hlwpplEhF9bmFNw=="
},
"hangfire.core": {
"type": "Project",
"dependencies": {
"Cronos": "[0.11.1, )",
"Microsoft.CSharp": "[4.4.0, )",
"Newtonsoft.Json": "[11.0.1, )"
}
},
"hangfire.netcore": {
"type": "Project",
"dependencies": {
"Hangfire.Core": "[1.0.0, )",
"Microsoft.Extensions.DependencyInjection.Abstractions": "[2.0.0, )",
"Microsoft.Extensions.Hosting.Abstractions": "[2.0.0, )",
"Microsoft.Extensions.Logging.Abstractions": "[2.0.0, )"
}
}
}
}
}
================================================
FILE: src/Hangfire.Core/AppBuilderExtensions.cs
================================================
// This file is part of Hangfire. Copyright © 2013-2014 Hangfire OÜ.
//
// Hangfire is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3
// of the License, or any later version.
//
// Hangfire is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with Hangfire. If not, see .
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
using System.Threading;
using System.Threading.Tasks;
using Hangfire.Annotations;
using Hangfire.Dashboard;
using Hangfire.Dashboard.Owin;
using Hangfire.Logging;
using Hangfire.Server;
using Owin;
using Microsoft.Owin;
using Microsoft.Owin.Infrastructure;
namespace Hangfire
{
using BuildFunc = Action<
Func<
IDictionary,
Func<
Func, Task>,
Func, Task>
>>>;
///
/// Provides extension methods for the IAppBuilder interface
/// defined in the Owin
/// NuGet package to simplify the integration with OWIN applications.
///
///
///
///
/// This class simplifies Hangfire configuration in OWIN applications,
/// please read
/// Getting Started with OWIN and Katana if you aren't familiar with OWIN
/// and/or don't know what is the Startup class.
///
///
/// The methods of this class should be called from OWIN's Startup
/// class.
///
/// UseHangfireDashboard
/// Dashboard UI contains pages that allow you to monitor almost every
/// aspect of background processing. It is exposed as an OWIN middleware that
/// intercepts requests to the given path.
/// OWIN implementation of Dashboard UI allows to use it outside of web
/// applications, including console applications and Windows Services.
///
/// By default, an access to the Dashboard UI is restricted only to local
/// requests for security reasons. Before publishing a project to
/// production, make sure you still have access to the Dashboard UI by using the
///
/// Hangfire.Dashboard.Authorization package.
///
/// UseHangfireServer
/// In addition to creation of a new instance of the
/// class, these methods also register the call to its
/// method on application shutdown. This is done via registering a callback on the corresponding
/// from OWIN environment ("host.OnAppDisposing" or
/// "server.OnDispose" keys).
/// This enables graceful shutdown feature for background jobs and background processes
/// without any additional configuration.
/// Please see for more details regarding
/// background processing.
///
///
///
/// Basic Configuration
/// Basic setup in an OWIN application looks like the following example. Please note
/// that job storage should be configured before using the methods of this class.
///
///
///
/// Adding Dashboard Only
/// If you want to install dashboard without starting a background job server, for example,
/// to process background jobs outside of your web application, call only the
/// .
///
///
///
/// Change Dashboard Path
/// By default, you can access Dashboard UI by hitting the http(s)://<app>/hangfire
/// URL, however you can change it as in the following example.
///
///
///
/// Configuring Authorization
/// The following example demonstrates how to change default local-requests-only
/// authorization for Dashboard UI.
///
///
///
/// Changing Application Path
/// Have you seen the Back to site button in the Dashboard? By default it leads
/// you to the root of your site, but you can configure the behavior.
///
///
///
/// Multiple Dashboards
/// The following example demonstrates adding multiple Dashboard UI endpoints. This may
/// be useful when you are using multiple shards for your background processing needs.
///
///
///
///
///
///
///
///
/// Hangfire.Dashboard.Authorization Package
///
///
///
[EditorBrowsable(EditorBrowsableState.Never)]
public static class AppBuilderExtensions
{
// Prevent GC to collect background processing servers in hosts that do
// not support shutdown notifications. Dictionary is used as a Set.
private static readonly ConcurrentDictionary Servers
= new ConcurrentDictionary();
///
/// Creates a new instance of the class
/// with default options and storage and
/// registers its disposal on application shutdown.
///
/// OWIN application builder.
///
/// is null.
///
/// OWIN environment does not contain the application shutdown cancellation token.
///
///
///
/// Please see for details and examples.
///
public static IAppBuilder UseHangfireServer([NotNull] this IAppBuilder builder)
{
return builder.UseHangfireServer(new BackgroundJobServerOptions());
}
///
/// Creates a new instance of the class
/// with the given collection of additional background processes and
/// storage, and registers its disposal
/// on application shutdown.
///
/// OWIN application builder.
/// Collection of additional background processes.
///
/// is null.
/// is null.
///
/// OWIN environment does not contain the application shutdown cancellation token.
///
///
///
/// Please see for details and examples.
///
public static IAppBuilder UseHangfireServer(
[NotNull] this IAppBuilder builder,
[NotNull] params IBackgroundProcess[] additionalProcesses)
{
return builder.UseHangfireServer(JobStorage.Current, new BackgroundJobServerOptions(), additionalProcesses);
}
///
/// Creates a new instance of the class
/// with the specified options and storage,
/// and registers its disposal on application shutdown.
///
/// OWIN application builder.
/// Options for background job server.
///
/// is null.
/// is null.
///
/// OWIN environment does not contain the application shutdown cancellation token.
///
///
///
/// Please see for details and examples.
///
public static IAppBuilder UseHangfireServer(
[NotNull] this IAppBuilder builder,
[NotNull] BackgroundJobServerOptions options)
{
return builder.UseHangfireServer(options, JobStorage.Current);
}
///
/// Creates a new instance of the class
/// with the specified options, given collection of background processes
/// and storage, and registers its
/// disposal on application shutdown.
///
/// OWIN application builder.
/// Options for background job server.
/// Collection of additional background processes.
///
/// is null.
/// is null.
/// is null.
///
/// OWIN environment does not contain the application shutdown cancellation token.
///
///
///
/// Please see for details and examples.
///
public static IAppBuilder UseHangfireServer(
[NotNull] this IAppBuilder builder,
[NotNull] BackgroundJobServerOptions options,
[NotNull] params IBackgroundProcess[] additionalProcesses)
{
return builder.UseHangfireServer(JobStorage.Current, options, additionalProcesses);
}
///
/// Creates a new instance of the class
/// with the given options and specified storage, and registers its disposal
/// on application shutdown.
///
/// OWIN application builder.
/// Options for background job server.
/// Storage to use by background job server.
///
/// is null.
/// is null.
/// is null.
///
/// OWIN environment does not contain the application shutdown cancellation token.
///
///
///
/// Please see for details and examples.
///
public static IAppBuilder UseHangfireServer(
[NotNull] this IAppBuilder builder,
[NotNull] BackgroundJobServerOptions options,
[NotNull] JobStorage storage)
{
return builder.UseHangfireServer(storage, options);
}
///
/// Starts a new instance of the class with
/// the given arguments, and registers its disposal on application shutdown.
///
///
/// OWIN application builder.
/// Storage to use by background job server.
/// Options for background job server.
/// Collection of additional background processes.
///
/// is null.
/// is null.
/// is null.
/// is null.
///
/// OWIN environment does not contain the application shutdown cancellation token.
///
///
///
/// Please see for details and examples.
///
public static IAppBuilder UseHangfireServer(
[NotNull] this IAppBuilder builder,
[NotNull] JobStorage storage,
[NotNull] BackgroundJobServerOptions options,
[NotNull] params IBackgroundProcess[] additionalProcesses)
{
if (builder == null) throw new ArgumentNullException(nameof(builder));
if (storage == null) throw new ArgumentNullException(nameof(storage));
if (options == null) throw new ArgumentNullException(nameof(options));
if (additionalProcesses == null) throw new ArgumentNullException(nameof(additionalProcesses));
return UseHangfireServer(builder, new BackgroundJobServer(options, storage, additionalProcesses));
}
///
/// Registers the given custom instance of the
/// interface for disposal on application shutdown.
///
///
/// OWIN application builder.
/// Custom background processing server instance.
///
/// is null.
/// is null.
///
/// OWIN environment does not contain the application shutdown cancellation token.
///
///
///
/// Please see for details and examples.
///
public static IAppBuilder UseHangfireServer(
[NotNull] this IAppBuilder builder,
[NotNull] IBackgroundProcessingServer server)
{
if (builder == null) throw new ArgumentNullException(nameof(builder));
if (server == null) throw new ArgumentNullException(nameof(server));
Servers.TryAdd(server, null);
var context = new OwinContext(builder.Properties);
var token = context.Get("host.OnAppDisposing");
if (token == default(CancellationToken))
{
// https://github.com/owin/owin/issues/27
token = context.Get("server.OnDispose");
}
if (token == default(CancellationToken))
{
throw new InvalidOperationException(
"Current OWIN environment does not contain an instance of the `CancellationToken` class neither under `host.OnAppDisposing`, nor `server.OnDispose` key.\r\n"
+ "Please use another OWIN host or create an instance of the `BackgroundJobServer` class manually.");
}
token.Register(OnAppDisposing, server);
return builder;
}
private static void OnAppDisposing(object state)
{
var logger = LogProvider.GetLogger(typeof(AppBuilderExtensions));
logger.Info("Web application is shutting down via OWIN's host.OnAppDisposing callback.");
((IDisposable) state).Dispose();
if (state is IBackgroundProcessingServer server)
Servers.TryRemove(server, out _);
}
///
/// Adds Dashboard UI middleware to the OWIN request processing pipeline under
/// the /hangfire path, for the storage.
///
/// OWIN application builder.
///
/// is null.
///
///
/// Please see for details and examples.
///
public static IAppBuilder UseHangfireDashboard([NotNull] this IAppBuilder builder)
{
return builder.UseHangfireDashboard("/hangfire");
}
///
/// Adds Dashboard UI middleware to the OWIN request processing pipeline under
/// the given path, for the storage.
///
/// OWIN application builder.
/// Path prefix for middleware to use, e.g. "/hangfire".
///
/// is null.
/// is null.
///
///
/// Please see for details and examples.
///
public static IAppBuilder UseHangfireDashboard(
[NotNull] this IAppBuilder builder,
[NotNull] string pathMatch)
{
return builder.UseHangfireDashboard(pathMatch, new DashboardOptions());
}
///
/// Adds Dashboard UI middleware to the OWIN request processing pipeline under
/// the specified path and the given options, for the
/// storage.
///
/// OWIN application builder.
/// Path prefix for middleware to use, e.g. "/hangfire".
/// Options for Dashboard UI.
///
/// is null.
/// is null.
/// is null.
///
///
/// Please see for details and examples.
///
public static IAppBuilder UseHangfireDashboard(
[NotNull] this IAppBuilder builder,
[NotNull] string pathMatch,
[NotNull] DashboardOptions options)
{
return builder.UseHangfireDashboard(pathMatch, options, JobStorage.Current);
}
///
/// Adds Dashboard UI middleware to the OWIN request processing pipeline with the
/// specified parameters.
///
/// OWIN application builder.
/// Path prefix for middleware to use, e.g. "/hangfire".
/// Options for Dashboard UI.
/// Job storage to use by Dashboard IO.
///
/// is null.
/// is null.
/// is null.
/// is null.
///
///
/// Please see for details and examples.
///
public static IAppBuilder UseHangfireDashboard(
[NotNull] this IAppBuilder builder,
[NotNull] string pathMatch,
[NotNull] DashboardOptions options,
[NotNull] JobStorage storage)
{
return builder.UseHangfireDashboard(pathMatch, options, storage, null);
}
///
/// Adds Dashboard UI middleware to the OWIN request processing pipeline with the
/// specified parameters and antiforgery service.
///
/// OWIN application builder.
/// Path prefix for middleware to use, e.g. "/hangfire".
/// Options for Dashboard UI.
/// Job storage to use by Dashboard IO.
/// Antiforgery service.
///
/// is null.
/// is null.
/// is null.
/// is null.
///
///
/// Please see for details and examples.
///
public static IAppBuilder UseHangfireDashboard(
[NotNull] this IAppBuilder builder,
[NotNull] string pathMatch,
[NotNull] DashboardOptions options,
[NotNull] JobStorage storage,
[CanBeNull] IOwinDashboardAntiforgery antiforgery)
{
if (builder == null) throw new ArgumentNullException(nameof(builder));
if (pathMatch == null) throw new ArgumentNullException(nameof(pathMatch));
if (options == null) throw new ArgumentNullException(nameof(options));
if (storage == null) throw new ArgumentNullException(nameof(storage));
SignatureConversions.AddConversions(builder);
builder.Map(pathMatch, subApp => subApp
.UseOwin()
.UseHangfireDashboard(options, storage, DashboardRoutes.Routes, antiforgery));
return builder;
}
private static BuildFunc UseOwin(this IAppBuilder builder)
{
return middleware => builder.Use(middleware(builder.Properties));
}
}
}
================================================
FILE: src/Hangfire.Core/App_Packages/LibLog.1.4/LibLog.cs
================================================
//===============================================================================
// LibLog
//
// https://github.com/damianh/LibLog
//===============================================================================
// Copyright © 2011-2014 Damian Hickey. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//===============================================================================
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Threading;
using Hangfire.Logging.LogProviders;
// ReSharper disable All
namespace Hangfire.Logging
{
using System.Collections.Generic;
using System;
using System.Diagnostics;
using System.Globalization;
///
/// Simple interface that represent a logger.
///
public interface ILog
{
///
/// Log a message the specified log level.
///
/// The log level.
/// The message function.
/// An optional exception.
/// true if the message was logged. Otherwise false.
///
/// Note to implementers: the message func should not be called if the loglevel is not enabled
/// so as not to incur performance penalties.
///
/// To check IsEnabled call Log with only LogLevel and check the return value, no event will be written
///
bool Log(LogLevel logLevel, Func messageFunc, Exception exception = null);
}
///
/// The log level.
///
public enum LogLevel
{
Trace,
Debug,
Info,
Warn,
Error,
Fatal
}
public static class LogExtensions
{
public static bool IsDebugEnabled(this ILog logger)
{
GuardAgainstNullLogger(logger);
return logger.Log(LogLevel.Debug, null);
}
public static bool IsErrorEnabled(this ILog logger)
{
GuardAgainstNullLogger(logger);
return logger.Log(LogLevel.Error, null);
}
public static bool IsFatalEnabled(this ILog logger)
{
GuardAgainstNullLogger(logger);
return logger.Log(LogLevel.Fatal, null);
}
public static bool IsInfoEnabled(this ILog logger)
{
GuardAgainstNullLogger(logger);
return logger.Log(LogLevel.Info, null);
}
public static bool IsTraceEnabled(this ILog logger)
{
GuardAgainstNullLogger(logger);
return logger.Log(LogLevel.Trace, null);
}
public static bool IsWarnEnabled(this ILog logger)
{
GuardAgainstNullLogger(logger);
return logger.Log(LogLevel.Warn, null);
}
public static void Debug(this ILog logger, Func messageFunc)
{
GuardAgainstNullLogger(logger);
logger.Log(LogLevel.Debug, messageFunc);
}
public static void Debug(this ILog logger, string message)
{
if (logger.IsDebugEnabled())
{
logger.Log(LogLevel.Debug, message.AsFunc());
}
}
public static void DebugFormat(this ILog logger, string message, params object[] args)
{
if (logger.IsDebugEnabled())
{
logger.LogFormat(LogLevel.Debug, message, args);
}
}
public static void DebugException(this ILog logger, string message, Exception exception)
{
if (logger.IsDebugEnabled())
{
logger.Log(LogLevel.Debug, message.AsFunc(), exception);
}
}
public static void Error(this ILog logger, Func messageFunc)
{
logger.Log(LogLevel.Error, messageFunc);
}
public static void Error(this ILog logger, string message)
{
if (logger.IsErrorEnabled())
{
logger.Log(LogLevel.Error, message.AsFunc());
}
}
public static void ErrorFormat(this ILog logger, string message, params object[] args)
{
if (logger.IsErrorEnabled())
{
logger.LogFormat(LogLevel.Error, message, args);
}
}
public static void ErrorException(this ILog logger, string message, Exception exception)
{
if (logger.IsErrorEnabled())
{
logger.Log(LogLevel.Error, message.AsFunc(), exception);
}
}
public static void Fatal(this ILog logger, Func messageFunc)
{
logger.Log(LogLevel.Fatal, messageFunc);
}
public static void Fatal(this ILog logger, string message)
{
if (logger.IsFatalEnabled())
{
logger.Log(LogLevel.Fatal, message.AsFunc());
}
}
public static void FatalFormat(this ILog logger, string message, params object[] args)
{
if (logger.IsFatalEnabled())
{
logger.LogFormat(LogLevel.Fatal, message, args);
}
}
public static void FatalException(this ILog logger, string message, Exception exception)
{
if (logger.IsFatalEnabled())
{
logger.Log(LogLevel.Fatal, message.AsFunc(), exception);
}
}
public static void Info(this ILog logger, Func messageFunc)
{
GuardAgainstNullLogger(logger);
logger.Log(LogLevel.Info, messageFunc);
}
public static void Info(this ILog logger, string message)
{
if (logger.IsInfoEnabled())
{
logger.Log(LogLevel.Info, message.AsFunc());
}
}
public static void InfoFormat(this ILog logger, string message, params object[] args)
{
if (logger.IsInfoEnabled())
{
logger.LogFormat(LogLevel.Info, message, args);
}
}
public static void InfoException(this ILog logger, string message, Exception exception)
{
if (logger.IsInfoEnabled())
{
logger.Log(LogLevel.Info, message.AsFunc(), exception);
}
}
public static void Trace(this ILog logger, Func messageFunc)
{
GuardAgainstNullLogger(logger);
logger.Log(LogLevel.Trace, messageFunc);
}
public static void Trace(this ILog logger, string message)
{
if (logger.IsTraceEnabled())
{
logger.Log(LogLevel.Trace, message.AsFunc());
}
}
public static void TraceFormat(this ILog logger, string message, params object[] args)
{
if (logger.IsTraceEnabled())
{
logger.LogFormat(LogLevel.Trace, message, args);
}
}
public static void TraceException(this ILog logger, string message, Exception exception)
{
if (logger.IsTraceEnabled())
{
logger.Log(LogLevel.Trace, message.AsFunc(), exception);
}
}
public static void Warn(this ILog logger, Func messageFunc)
{
GuardAgainstNullLogger(logger);
logger.Log(LogLevel.Warn, messageFunc);
}
public static void Warn(this ILog logger, string message)
{
if (logger.IsWarnEnabled())
{
logger.Log(LogLevel.Warn, message.AsFunc());
}
}
public static void WarnFormat(this ILog logger, string message, params object[] args)
{
if (logger.IsWarnEnabled())
{
logger.LogFormat(LogLevel.Warn, message, args);
}
}
public static void WarnException(this ILog logger, string message, Exception exception)
{
if (logger.IsWarnEnabled())
{
logger.Log(LogLevel.Warn, message.AsFunc(), exception);
}
}
private static void GuardAgainstNullLogger(ILog logger)
{
if (logger == null)
{
throw new ArgumentNullException(nameof(logger));
}
}
private static void LogFormat(this ILog logger, LogLevel logLevel, string message, params object[] args)
{
var result = string.Format(CultureInfo.InvariantCulture, message, args);
logger.Log(logLevel, result.AsFunc());
}
// Avoid the closure allocation, see https://gist.github.com/AArnott/d285feef75c18f6ecd2b
private static Func AsFunc(this T value) where T : class
{
return value.Return;
}
private static T Return(this T value)
{
return value;
}
}
///
/// Represents a way to get a
///
public interface ILogProvider
{
ILog GetLogger(string name);
}
///
/// Provides a mechanism to create instances of objects.
///
public static class LogProvider
{
private static ILogProvider _currentLogProvider;
///
/// Gets a logger for the specified type.
///
/// The type whose name will be used for the logger.
/// An instance of
public static ILog For()
{
return GetLogger(typeof(T));
}
#if !NETSTANDARD1_3
///
/// Gets a logger for the current class.
///
/// An instance of
public static ILog GetCurrentClassLogger()
{
var stackFrame = new StackFrame(1, false);
return GetLogger(stackFrame.GetMethod().DeclaringType);
}
#endif
///
/// Gets a logger for the specified type.
///
/// The type whose name will be used for the logger.
/// An instance of
public static ILog GetLogger(Type type)
{
return GetLogger(type.FullName);
}
///
/// Gets a logger with the specified name.
///
/// The name.
/// An instance of
public static ILog GetLogger(string name)
{
ILogProvider logProvider = Volatile.Read(ref _currentLogProvider) ?? ResolveLogProvider();
return logProvider == null ? new NoOpLogger() : (ILog)new LoggerExecutionWrapper(logProvider.GetLogger(name));
}
///
/// Sets the current log provider.
///
/// The log provider.
public static void SetCurrentLogProvider(ILogProvider logProvider)
{
Volatile.Write(ref _currentLogProvider, logProvider);
}
internal delegate bool IsLoggerAvailable();
internal delegate ILogProvider CreateLogProvider();
internal static readonly List> LogProviderResolvers =
new List>
{
new Tuple(SerilogLogProvider.IsLoggerAvailable, static () => new SerilogLogProvider()),
new Tuple(NLogLogProvider.IsLoggerAvailable, static () => new NLogLogProvider()),
new Tuple(Log4NetLogProvider.IsLoggerAvailable, static () => new Log4NetLogProvider()),
#if !NETSTANDARD1_3
new Tuple(EntLibLogProvider.IsLoggerAvailable, static () => new EntLibLogProvider()),
new Tuple(LoupeLogProvider.IsLoggerAvailable, static () => new LoupeLogProvider()),
new Tuple(ElmahLogProvider.IsLoggerAvailable, static () => new ElmahLogProvider()),
#endif
};
private static ILogProvider ResolveLogProvider()
{
try
{
foreach (var providerResolver in LogProviderResolvers)
{
if (providerResolver.Item1())
{
return providerResolver.Item2();
}
}
}
catch (Exception ex) when (ex.IsCatchableExceptionType())
{
Console.WriteLine(
"Exception occured resolving a log provider. Logging for this assembly {0} is disabled. {1}",
typeof(LogProvider).GetTypeInfo().Assembly.FullName,
ex);
}
return null;
}
internal sealed class NoOpLogProvider : ILogProvider
{
public static readonly NoOpLogProvider Instance = new NoOpLogProvider();
public ILog GetLogger(string name)
{
return NoOpLogger.Instance;
}
}
internal sealed class NoOpLogger : ILog
{
public static readonly NoOpLogger Instance = new NoOpLogger();
public bool Log(LogLevel logLevel, Func messageFunc, Exception exception)
{
return false;
}
}
}
internal sealed class LoggerExecutionWrapper : ILog
{
private readonly ILog _logger;
public const string FailedToGenerateLogMessage = "Failed to generate log message";
public ILog WrappedLogger
{
get { return _logger; }
}
public LoggerExecutionWrapper(ILog logger)
{
_logger = logger;
}
public bool Log(LogLevel logLevel, Func messageFunc, Exception exception = null)
{
if (messageFunc == null)
{
return _logger.Log(logLevel, null);
}
Func wrappedMessageFunc = () =>
{
try
{
return messageFunc();
}
catch (Exception ex) when (ex.IsCatchableExceptionType())
{
Log(LogLevel.Error, static () => FailedToGenerateLogMessage, ex);
}
return null;
};
return _logger.Log(logLevel, wrappedMessageFunc, exception);
}
}
}
namespace Hangfire.Logging.LogProviders
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
public class NLogLogProvider : ILogProvider
{
private readonly Func _getLoggerByNameDelegate;
private static bool _providerIsAvailableOverride = true;
public NLogLogProvider()
{
if (!IsLoggerAvailable())
{
throw new InvalidOperationException("NLog.LogManager not found");
}
_getLoggerByNameDelegate = GetGetLoggerMethodCall();
}
public static bool ProviderIsAvailableOverride
{
get { return _providerIsAvailableOverride; }
set { _providerIsAvailableOverride = value; }
}
public ILog GetLogger(string name)
{
return new NLogLogger(_getLoggerByNameDelegate(name));
}
public static bool IsLoggerAvailable()
{
return ProviderIsAvailableOverride && GetLogManagerType() != null;
}
private static Type GetLogManagerType()
{
return Type.GetType("NLog.LogManager, NLog");
}
private static Func GetGetLoggerMethodCall()
{
Type logManagerType = GetLogManagerType();
MethodInfo method = logManagerType.GetRuntimeMethod("GetLogger", new[] { typeof(string) });
ParameterExpression nameParam = Expression.Parameter(typeof(string), "name");
MethodCallExpression methodCall = Expression.Call(null, method, new Expression[] { nameParam });
return Expression.Lambda>(methodCall, new[] { nameParam }).Compile();
}
internal sealed class NLogLogger : ILog
{
private readonly dynamic _logger;
internal NLogLogger(dynamic logger)
{
_logger = logger;
}
public bool Log(LogLevel logLevel, Func messageFunc, Exception exception)
{
if (messageFunc == null)
{
return IsLogLevelEnable(logLevel);
}
if (exception != null)
{
return LogException(logLevel, messageFunc, exception);
}
switch (logLevel)
{
case LogLevel.Debug:
if (_logger.IsDebugEnabled)
{
_logger.Debug(messageFunc());
return true;
}
break;
case LogLevel.Info:
if (_logger.IsInfoEnabled)
{
_logger.Info(messageFunc());
return true;
}
break;
case LogLevel.Warn:
if (_logger.IsWarnEnabled)
{
_logger.Warn(messageFunc());
return true;
}
break;
case LogLevel.Error:
if (_logger.IsErrorEnabled)
{
_logger.Error(messageFunc());
return true;
}
break;
case LogLevel.Fatal:
if (_logger.IsFatalEnabled)
{
_logger.Fatal(messageFunc());
return true;
}
break;
default:
if (_logger.IsTraceEnabled)
{
_logger.Trace(messageFunc());
return true;
}
break;
}
return false;
}
private bool LogException(LogLevel logLevel, Func messageFunc, Exception exception)
{
switch (logLevel)
{
case LogLevel.Debug:
if (_logger.IsDebugEnabled)
{
_logger.DebugException(messageFunc(), exception);
return true;
}
break;
case LogLevel.Info:
if (_logger.IsInfoEnabled)
{
_logger.InfoException(messageFunc(), exception);
return true;
}
break;
case LogLevel.Warn:
if (_logger.IsWarnEnabled)
{
_logger.WarnException(messageFunc(), exception);
return true;
}
break;
case LogLevel.Error:
if (_logger.IsErrorEnabled)
{
_logger.ErrorException(messageFunc(), exception);
return true;
}
break;
case LogLevel.Fatal:
if (_logger.IsFatalEnabled)
{
_logger.FatalException(messageFunc(), exception);
return true;
}
break;
default:
if (_logger.IsTraceEnabled)
{
_logger.TraceException(messageFunc(), exception);
return true;
}
break;
}
return false;
}
private bool IsLogLevelEnable(LogLevel logLevel)
{
switch (logLevel)
{
case LogLevel.Debug:
return _logger.IsDebugEnabled;
case LogLevel.Info:
return _logger.IsInfoEnabled;
case LogLevel.Warn:
return _logger.IsWarnEnabled;
case LogLevel.Error:
return _logger.IsErrorEnabled;
case LogLevel.Fatal:
return _logger.IsFatalEnabled;
default:
return _logger.IsTraceEnabled;
}
}
}
}
public class Log4NetLogProvider : ILogProvider
{
private readonly Func _getLoggerByNameDelegate;
private static bool _providerIsAvailableOverride = true;
public Log4NetLogProvider()
{
if (!IsLoggerAvailable())
{
throw new InvalidOperationException("log4net.LogManager not found");
}
_getLoggerByNameDelegate = GetGetLoggerMethodCall();
}
public static bool ProviderIsAvailableOverride
{
get { return _providerIsAvailableOverride; }
set { _providerIsAvailableOverride = value; }
}
public ILog GetLogger(string name)
{
return new Log4NetLogger(_getLoggerByNameDelegate(name));
}
public static bool IsLoggerAvailable()
{
return ProviderIsAvailableOverride && GetLogManagerType() != null;
}
private static Type GetLogManagerType()
{
return Type.GetType("log4net.LogManager, log4net");
}
private static Func GetGetLoggerMethodCall()
{
Type logManagerType = GetLogManagerType();
MethodInfo method = logManagerType.GetRuntimeMethod("GetLogger", new[] { typeof(Assembly), typeof(string) });
ParameterExpression nameParam = Expression.Parameter(typeof(string), "name");
MethodCallExpression methodCall = Expression.Call(null, method, new Expression[] { Expression.Constant(typeof(Log4NetLogProvider).GetTypeInfo().Assembly), nameParam });
return Expression.Lambda>(methodCall, new[] { nameParam }).Compile();
}
internal sealed class Log4NetLogger : ILog
{
private readonly dynamic _logger;
internal Log4NetLogger(dynamic logger)
{
_logger = logger;
}
public bool Log(LogLevel logLevel, Func messageFunc, Exception exception)
{
if (messageFunc == null)
{
return IsLogLevelEnable(logLevel);
}
if (exception != null)
{
return LogException(logLevel, messageFunc, exception);
}
switch (logLevel)
{
case LogLevel.Info:
if (_logger.IsInfoEnabled)
{
_logger.Info(messageFunc());
return true;
}
break;
case LogLevel.Warn:
if (_logger.IsWarnEnabled)
{
_logger.Warn(messageFunc());
return true;
}
break;
case LogLevel.Error:
if (_logger.IsErrorEnabled)
{
_logger.Error(messageFunc());
return true;
}
break;
case LogLevel.Fatal:
if (_logger.IsFatalEnabled)
{
_logger.Fatal(messageFunc());
return true;
}
break;
default:
if (_logger.IsDebugEnabled)
{
_logger.Debug(messageFunc()); // Log4Net doesn't have a 'Trace' level, so all Trace messages are written as 'Debug'
return true;
}
break;
}
return false;
}
private bool LogException(LogLevel logLevel, Func messageFunc, Exception exception)
{
switch (logLevel)
{
case LogLevel.Info:
if (_logger.IsDebugEnabled)
{
_logger.Info(messageFunc(), exception);
return true;
}
break;
case LogLevel.Warn:
if (_logger.IsWarnEnabled)
{
_logger.Warn(messageFunc(), exception);
return true;
}
break;
case LogLevel.Error:
if (_logger.IsErrorEnabled)
{
_logger.Error(messageFunc(), exception);
return true;
}
break;
case LogLevel.Fatal:
if (_logger.IsFatalEnabled)
{
_logger.Fatal(messageFunc(), exception);
return true;
}
break;
default:
if (_logger.IsDebugEnabled)
{
_logger.Debug(messageFunc(), exception);
return true;
}
break;
}
return false;
}
private bool IsLogLevelEnable(LogLevel logLevel)
{
switch (logLevel)
{
case LogLevel.Debug:
return _logger.IsDebugEnabled;
case LogLevel.Info:
return _logger.IsInfoEnabled;
case LogLevel.Warn:
return _logger.IsWarnEnabled;
case LogLevel.Error:
return _logger.IsErrorEnabled;
case LogLevel.Fatal:
return _logger.IsFatalEnabled;
default:
return _logger.IsDebugEnabled;
}
}
}
}
#if !NETSTANDARD1_3
public class EntLibLogProvider : ILogProvider
{
private const string TypeTemplate = "Microsoft.Practices.EnterpriseLibrary.Logging.{0}, Microsoft.Practices.EnterpriseLibrary.Logging";
private static bool _providerIsAvailableOverride = true;
private static readonly Type LogEntryType;
private static readonly Type LoggerType;
private readonly Action WriteLogEntry;
private Func ShouldLogEntry;
static EntLibLogProvider()
{
LogEntryType = Type.GetType(string.Format(CultureInfo.InvariantCulture, TypeTemplate, "LogEntry"));
LoggerType = Type.GetType(string.Format(CultureInfo.InvariantCulture, TypeTemplate, "Logger"));
}
public EntLibLogProvider()
{
if (!IsLoggerAvailable())
{
throw new InvalidOperationException("Microsoft.Practices.EnterpriseLibrary.Logging.Logger not found");
}
WriteLogEntry = GetWriteLogEntry();
ShouldLogEntry = GetShouldLogEntry();
}
public static bool ProviderIsAvailableOverride
{
get { return _providerIsAvailableOverride; }
set { _providerIsAvailableOverride = value; }
}
public ILog GetLogger(string name)
{
return new EntLibLogger(name, WriteLogEntry, ShouldLogEntry);
}
public static bool IsLoggerAvailable()
{
return ProviderIsAvailableOverride && LogEntryType != null;
}
private static Action GetWriteLogEntry()
{
// new LogEntry(...)
var logNameParameter = Expression.Parameter(typeof(string), "logName");
var messageParameter = Expression.Parameter(typeof(string), "message");
var severityParameter = Expression.Parameter(typeof(TraceEventType), "severity");
MemberInitExpression memberInit = GetWriteLogExpression(messageParameter, severityParameter, logNameParameter);
//Logger.Write(new LogEntry(....));
MethodInfo writeLogEntryMethod = LoggerType.GetMethod("Write", new[] { LogEntryType });
var writeLogEntryExpression = Expression.Call(writeLogEntryMethod, memberInit);
return Expression.Lambda>(
writeLogEntryExpression,
logNameParameter,
messageParameter,
severityParameter).Compile();
}
private static Func GetShouldLogEntry()
{
// new LogEntry(...)
var logNameParameter = Expression.Parameter(typeof(string), "logName");
var severityParameter = Expression.Parameter(typeof(TraceEventType), "severity");
MemberInitExpression memberInit = GetWriteLogExpression(Expression.Constant("***dummy***"), severityParameter, logNameParameter);
//Logger.Write(new LogEntry(....));
MethodInfo writeLogEntryMethod = LoggerType.GetMethod("ShouldLog", new[] { LogEntryType });
var writeLogEntryExpression = Expression.Call(writeLogEntryMethod, memberInit);
return Expression.Lambda>(
writeLogEntryExpression,
logNameParameter,
severityParameter).Compile();
}
private static MemberInitExpression GetWriteLogExpression(Expression message,
ParameterExpression severityParameter, ParameterExpression logNameParameter)
{
var entryType = LogEntryType;
MemberInitExpression memberInit = Expression.MemberInit(Expression.New(entryType), new MemberBinding[]
{
Expression.Bind(entryType.GetProperty("Message"), message),
Expression.Bind(entryType.GetProperty("Severity"), severityParameter),
Expression.Bind(entryType.GetProperty("TimeStamp"),
Expression.Property(null, typeof (DateTime).GetProperty("UtcNow"))),
Expression.Bind(entryType.GetProperty("Categories"),
Expression.ListInit(
Expression.New(typeof (List)),
typeof (List).GetMethod("Add", new[] {typeof (string)}),
logNameParameter))
});
return memberInit;
}
internal sealed class EntLibLogger : ILog
{
private readonly string _loggerName;
private readonly Action _writeLog;
private readonly Func _shouldLog;
internal EntLibLogger(string loggerName, Action writeLog, Func shouldLog)
{
_loggerName = loggerName;
_writeLog = writeLog;
_shouldLog = shouldLog;
}
public bool Log(LogLevel logLevel, Func messageFunc, Exception exception)
{
var severity = MapSeverity(logLevel);
if (messageFunc == null)
{
return _shouldLog(_loggerName, severity);
}
if (exception != null)
{
return LogException(logLevel, messageFunc, exception);
}
_writeLog(_loggerName, messageFunc(), severity);
return true;
}
public bool LogException(LogLevel logLevel, Func messageFunc, Exception exception)
{
var severity = MapSeverity(logLevel);
var message = messageFunc() + Environment.NewLine + exception;
_writeLog(_loggerName, message, severity);
return true;
}
private static TraceEventType MapSeverity(LogLevel logLevel)
{
switch (logLevel)
{
case LogLevel.Fatal:
return TraceEventType.Critical;
case LogLevel.Error:
return TraceEventType.Error;
case LogLevel.Warn:
return TraceEventType.Warning;
case LogLevel.Info:
return TraceEventType.Information;
default:
return TraceEventType.Verbose;
}
}
}
}
#endif
public class SerilogLogProvider : ILogProvider
{
private readonly Func _getLoggerByNameDelegate;
private readonly SerilogCallbacks _callbacks;
private static bool _providerIsAvailableOverride = true;
public SerilogLogProvider()
{
if (!IsLoggerAvailable())
{
throw new InvalidOperationException("Serilog.Log not found");
}
_getLoggerByNameDelegate = GetForContextMethodCall();
_callbacks = new SerilogCallbacks();
}
public static bool ProviderIsAvailableOverride
{
get { return _providerIsAvailableOverride; }
set { _providerIsAvailableOverride = value; }
}
public ILog GetLogger(string name)
{
return new SerilogLogger(_callbacks, _getLoggerByNameDelegate(name));
}
public static bool IsLoggerAvailable()
{
return ProviderIsAvailableOverride && GetLogManagerType() != null;
}
private static Type GetLogManagerType()
{
return Type.GetType("Serilog.Log, Serilog");
}
private static Func GetForContextMethodCall()
{
Type logManagerType = GetLogManagerType();
MethodInfo method = logManagerType.GetRuntimeMethod("ForContext", new[] { typeof(string), typeof(object), typeof(bool) });
ParameterExpression propertyNameParam = Expression.Parameter(typeof(string), "propertyName");
ParameterExpression valueParam = Expression.Parameter(typeof(object), "value");
ParameterExpression destructureObjectsParam = Expression.Parameter(typeof(bool), "destructureObjects");
MethodCallExpression methodCall = Expression.Call(null, method, new Expression[]
{
propertyNameParam,
valueParam,
destructureObjectsParam
});
var func = Expression.Lambda>(methodCall, new[]
{
propertyNameParam,
valueParam,
destructureObjectsParam
}).Compile();
return name => func("SourceContext", name, false);
}
internal sealed class SerilogCallbacks
{
private static object[] EmptyArray = [];
public readonly object DebugLevel;
public readonly object ErrorLevel;
public readonly object FatalLevel;
public readonly object InformationLevel;
public readonly object VerboseLevel;
public readonly object WarningLevel;
public readonly Func IsEnabled;
public readonly Action Write;
public readonly Action WriteException;
public SerilogCallbacks()
{
var logEventTypeType = Type.GetType("Serilog.Events.LogEventLevel, Serilog");
DebugLevel = Enum.Parse(logEventTypeType, "Debug");
ErrorLevel = Enum.Parse(logEventTypeType, "Error");
FatalLevel = Enum.Parse(logEventTypeType, "Fatal");
InformationLevel = Enum.Parse(logEventTypeType, "Information");
VerboseLevel = Enum.Parse(logEventTypeType, "Verbose");
WarningLevel = Enum.Parse(logEventTypeType, "Warning");
// Func isEnabled = (logger, level) => { return ((SeriLog.ILogger)logger).IsEnabled(level); }
var loggerType = Type.GetType("Serilog.ILogger, Serilog");
MethodInfo isEnabledMethodInfo = loggerType.GetRuntimeMethod("IsEnabled", new Type[] { logEventTypeType });
ParameterExpression instanceParam = Expression.Parameter(typeof(object));
UnaryExpression instanceCast = Expression.Convert(instanceParam, loggerType);
ParameterExpression levelParam = Expression.Parameter(typeof(object));
UnaryExpression levelCast = Expression.Convert(levelParam, logEventTypeType);
MethodCallExpression isEnabledMethodCall = Expression.Call(instanceCast, isEnabledMethodInfo, levelCast);
IsEnabled = Expression.Lambda>(isEnabledMethodCall, new[]
{
instanceParam,
levelParam
}).Compile();
// Action Write =
// (logger, level, message) => { ((SeriLog.ILoggerILogger)logger).Write(level, message, new object[]); }
MethodInfo writeMethodInfo = loggerType.GetRuntimeMethod("Write", new[] { logEventTypeType, typeof(string), typeof(object[]) });
ParameterExpression messageParam = Expression.Parameter(typeof(string));
ConstantExpression propertyValuesParam = Expression.Constant(EmptyArray);
MethodCallExpression writeMethodExp = Expression.Call(instanceCast, writeMethodInfo, levelCast, messageParam, propertyValuesParam);
Write = Expression.Lambda>(writeMethodExp, new[]
{
instanceParam,
levelParam,
messageParam
}).Compile();
// Action WriteException =
// (logger, level, exception, message) => { ((ILogger)logger).Write(level, exception, message, new object[]); }
MethodInfo writeExceptionMethodInfo = loggerType.GetRuntimeMethod("Write", new[]
{
logEventTypeType,
typeof(Exception),
typeof(string),
typeof(object[])
});
ParameterExpression exceptionParam = Expression.Parameter(typeof(Exception));
writeMethodExp = Expression.Call(
instanceCast,
writeExceptionMethodInfo,
levelCast,
exceptionParam,
messageParam,
propertyValuesParam);
WriteException = Expression.Lambda>(writeMethodExp, new[]
{
instanceParam,
levelParam,
exceptionParam,
messageParam,
}).Compile();
}
}
internal sealed class SerilogLogger : ILog
{
private readonly SerilogCallbacks _callbacks;
private readonly object _logger;
internal SerilogLogger(SerilogCallbacks callbacks, object logger)
{
_callbacks = callbacks;
_logger = logger;
}
public bool Log(LogLevel logLevel, Func messageFunc, Exception exception)
{
if (messageFunc == null)
{
return _callbacks.IsEnabled(_logger, logLevel);
}
if (exception != null)
{
return LogException(logLevel, messageFunc, exception);
}
switch (logLevel)
{
case LogLevel.Debug:
if (_callbacks.IsEnabled(_logger, _callbacks.DebugLevel))
{
_callbacks.Write(_logger, _callbacks.DebugLevel, messageFunc());
return true;
}
break;
case LogLevel.Info:
if (_callbacks.IsEnabled(_logger, _callbacks.InformationLevel))
{
_callbacks.Write(_logger, _callbacks.InformationLevel, messageFunc());
return true;
}
break;
case LogLevel.Warn:
if (_callbacks.IsEnabled(_logger, _callbacks.WarningLevel))
{
_callbacks.Write(_logger, _callbacks.WarningLevel, messageFunc());
return true;
}
break;
case LogLevel.Error:
if (_callbacks.IsEnabled(_logger, _callbacks.ErrorLevel))
{
_callbacks.Write(_logger, _callbacks.ErrorLevel, messageFunc());
return true;
}
break;
case LogLevel.Fatal:
if (_callbacks.IsEnabled(_logger, _callbacks.FatalLevel))
{
_callbacks.Write(_logger, _callbacks.FatalLevel, messageFunc());
return true;
}
break;
default:
if (_callbacks.IsEnabled(_logger, _callbacks.VerboseLevel))
{
_callbacks.Write(_logger, _callbacks.VerboseLevel, messageFunc());
return true;
}
break;
}
return false;
}
private bool LogException(LogLevel logLevel, Func messageFunc, Exception exception)
{
switch (logLevel)
{
case LogLevel.Debug:
if (_callbacks.IsEnabled(_logger, _callbacks.DebugLevel))
{
_callbacks.WriteException(_logger, _callbacks.DebugLevel, exception, messageFunc());
return true;
}
break;
case LogLevel.Info:
if (_callbacks.IsEnabled(_logger, _callbacks.InformationLevel))
{
_callbacks.WriteException(_logger, _callbacks.InformationLevel, exception, messageFunc());
return true;
}
break;
case LogLevel.Warn:
if (_callbacks.IsEnabled(_logger, _callbacks.WarningLevel))
{
_callbacks.WriteException(_logger, _callbacks.WarningLevel, exception, messageFunc());
return true;
}
break;
case LogLevel.Error:
if (_callbacks.IsEnabled(_logger, _callbacks.ErrorLevel))
{
_callbacks.WriteException(_logger, _callbacks.ErrorLevel, exception, messageFunc());
return true;
}
break;
case LogLevel.Fatal:
if (_callbacks.IsEnabled(_logger, _callbacks.FatalLevel))
{
_callbacks.WriteException(_logger, _callbacks.FatalLevel, exception, messageFunc());
return true;
}
break;
default:
if (_callbacks.IsEnabled(_logger, _callbacks.VerboseLevel))
{
_callbacks.WriteException(_logger, _callbacks.VerboseLevel, exception, messageFunc());
return true;
}
break;
}
return false;
}
}
}
#if !NETSTANDARD1_3
public class LoupeLogProvider : ILogProvider
{
private static bool _providerIsAvailableOverride = true;
private readonly WriteDelegate _logWriteDelegate;
public LoupeLogProvider()
{
if (!IsLoggerAvailable())
{
throw new InvalidOperationException("Gibraltar.Agent.Log (Loupe) not found");
}
_logWriteDelegate = GetLogWriteDelegate();
}
///
/// Gets or sets a value indicating whether [provider is available override]. Used in tests.
///
///
/// true if [provider is available override]; otherwise, false .
///
public static bool ProviderIsAvailableOverride
{
get { return _providerIsAvailableOverride; }
set { _providerIsAvailableOverride = value; }
}
public ILog GetLogger(string name)
{
return new LoupeLogger(name, _logWriteDelegate);
}
public static bool IsLoggerAvailable()
{
return ProviderIsAvailableOverride && GetLogManagerType() != null;
}
private static Type GetLogManagerType()
{
return Type.GetType("Gibraltar.Agent.Log, Gibraltar.Agent");
}
private static WriteDelegate GetLogWriteDelegate()
{
Type logManagerType = GetLogManagerType();
Type logMessageSeverityType = Type.GetType("Gibraltar.Agent.LogMessageSeverity, Gibraltar.Agent");
Type logWriteModeType = Type.GetType("Gibraltar.Agent.LogWriteMode, Gibraltar.Agent");
MethodInfo method = logManagerType.GetMethod("Write", new[]
{
logMessageSeverityType, typeof(string), typeof(int), typeof(Exception), typeof(bool),
logWriteModeType, typeof(string), typeof(string), typeof(string), typeof(string), typeof(object[])
});
return (WriteDelegate) method.CreateDelegate(typeof (WriteDelegate));
}
internal sealed class LoupeLogger : ILog
{
private const string LogSystem = "LibLog";
private readonly string _category;
private readonly WriteDelegate _logWriteDelegate;
private readonly int _skipLevel;
internal LoupeLogger(string category, WriteDelegate logWriteDelegate)
{
_category = category;
_logWriteDelegate = logWriteDelegate;
_skipLevel = 1;
}
public bool Log(LogLevel logLevel, Func messageFunc, Exception exception)
{
if (messageFunc == null)
{
//nothing to log..
return true;
}
_logWriteDelegate((int)LoupeLogger.ToLogMessageSeverity(logLevel), LogSystem, _skipLevel, exception, true, 0, null,
_category, null, messageFunc.Invoke());
return true;
}
private static TraceEventType ToLogMessageSeverity(LogLevel logLevel)
{
switch (logLevel)
{
case LogLevel.Trace:
return TraceEventType.Verbose;
case LogLevel.Debug:
return TraceEventType.Verbose;
case LogLevel.Info:
return TraceEventType.Information;
case LogLevel.Warn:
return TraceEventType.Warning;
case LogLevel.Error:
return TraceEventType.Error;
case LogLevel.Fatal:
return TraceEventType.Critical;
default:
throw new ArgumentOutOfRangeException(nameof(logLevel));
}
}
}
///
/// The form of the Loupe Log.Write method we're using
///
internal delegate void WriteDelegate(
int severity,
string logSystem,
int skipFrames,
Exception exception,
bool attributeToException,
int writeMode,
string detailsXml,
string category,
string caption,
string description,
params object[] args
);
}
#endif
public class ColouredConsoleLogProvider : ILogProvider
{
private readonly LogLevel _minLevel;
static ColouredConsoleLogProvider()
{
MessageFormatter = DefaultMessageFormatter;
Colors = new Dictionary {
{ LogLevel.Fatal, ConsoleColor.Red },
{ LogLevel.Error, ConsoleColor.Yellow },
{ LogLevel.Warn, ConsoleColor.Magenta },
{ LogLevel.Info, ConsoleColor.White },
{ LogLevel.Debug, ConsoleColor.Gray },
{ LogLevel.Trace, ConsoleColor.DarkGray },
};
}
public ColouredConsoleLogProvider()
: this(LogLevel.Info)
{
}
public ColouredConsoleLogProvider(LogLevel minLevel)
{
_minLevel = minLevel;
}
public ILog GetLogger(string name)
{
return new ColouredConsoleLogger(name, _minLevel);
}
///
/// A delegate returning a formatted log message
///
/// The name of the Logger
/// The Log Level
/// The Log Message
/// The Exception, if there is one
/// A formatted Log Message string.
[SuppressMessage("Naming", "CA1711:Identifiers should not have incorrect suffix", Justification = "Public API, can not change in minor versions.")]
public delegate string MessageFormatterDelegate(
string loggerName,
LogLevel level,
object message,
Exception e);
public static Dictionary Colors { get; set; }
public static MessageFormatterDelegate MessageFormatter { get; set; }
protected static string DefaultMessageFormatter(string loggerName, LogLevel level, object message, Exception e)
{
var stringBuilder = new StringBuilder();
stringBuilder.Append(DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss", CultureInfo.InvariantCulture));
stringBuilder.Append(' ');
// Append a readable representation of the log level
#pragma warning disable CA1311
stringBuilder.Append(("[" + level.ToString().ToUpper(
#if !NETSTANDARD1_3
CultureInfo.InvariantCulture
#endif
) + "]").PadRight(8));
#pragma warning restore CA1311
stringBuilder.Append("(" + loggerName + ") ");
// Append the message
stringBuilder.Append(message);
// Append stack trace if there is an exception
if (e != null)
{
stringBuilder.Append(Environment.NewLine).Append(e);
}
return stringBuilder.ToString();
}
internal sealed class ColouredConsoleLogger : ILog
{
private static readonly object Lock = new object();
private readonly string _name;
private readonly LogLevel _minLevel;
public ColouredConsoleLogger(string name, LogLevel minLevel)
{
_name = name;
_minLevel = minLevel;
}
public bool Log(LogLevel logLevel, Func messageFunc, Exception exception)
{
if (logLevel < _minLevel)
{
return false;
}
if (messageFunc == null)
{
return true;
}
Write(logLevel, messageFunc(), exception);
return true;
}
private void Write(LogLevel logLevel, string message, Exception e = null)
{
var formattedMessage = MessageFormatter(_name, logLevel, message, e);
ConsoleColor color;
if (Colors.TryGetValue(logLevel, out color))
{
lock (Lock)
{
var originalColor = Console.ForegroundColor;
try
{
Console.ForegroundColor = color;
Console.Out.WriteLine(formattedMessage);
}
finally
{
Console.ForegroundColor = originalColor;
}
}
}
else
{
Console.Out.WriteLine(formattedMessage);
}
}
}
}
#if !NETSTANDARD1_3
public class ElmahLogProvider : ILogProvider
{
private static bool _providerIsAvailableOverride = true;
private const LogLevel DefaultMinLevel = LogLevel.Error;
private readonly Type _errorType;
private readonly LogLevel _minLevel;
private readonly Func _getErrorLogDelegate;
public ElmahLogProvider()
: this(DefaultMinLevel)
{
}
public ElmahLogProvider(LogLevel minLevel)
{
if (!IsLoggerAvailable())
{
throw new InvalidOperationException("`Elmah.ErrorLog` or `Elmah.Error` type not found");
}
_minLevel = minLevel;
_errorType = GetErrorType();
_getErrorLogDelegate = GetGetErrorLogMethodCall();
}
public static bool ProviderIsAvailableOverride
{
get { return _providerIsAvailableOverride; }
set { _providerIsAvailableOverride = value; }
}
public ILog GetLogger(string name)
{
return new ElmahLog(_minLevel, _getErrorLogDelegate(), _errorType);
}
public static bool IsLoggerAvailable()
{
return ProviderIsAvailableOverride && GetLogManagerType() != null && GetErrorType() != null;
}
private static Type GetLogManagerType()
{
return Type.GetType("Elmah.ErrorLog, Elmah");
}
private static Type GetHttpContextType()
{
return Type.GetType(
$"System.Web.HttpContext, System.Web, Version={Environment.Version}, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a");
}
private static Type GetErrorType()
{
return Type.GetType("Elmah.Error, Elmah");
}
private static Func GetGetErrorLogMethodCall()
{
Type logManagerType = GetLogManagerType();
Type httpContextType = GetHttpContextType();
MethodInfo method = logManagerType.GetMethod("GetDefault", new[] { httpContextType });
ConstantExpression contextValue = Expression.Constant(null, httpContextType);
MethodCallExpression methodCall = Expression.Call(null, method, new Expression[] { contextValue });
return Expression.Lambda>(methodCall).Compile();
}
internal sealed class ElmahLog : ILog
{
private readonly LogLevel _minLevel;
private readonly Type _errorType;
private readonly dynamic _errorLog;
public ElmahLog(LogLevel minLevel, dynamic errorLog, Type errorType)
{
_minLevel = minLevel;
_errorType = errorType;
_errorLog = errorLog;
}
public bool Log(LogLevel logLevel, Func messageFunc, Exception exception)
{
if (messageFunc == null) return logLevel >= _minLevel;
var message = messageFunc();
dynamic error = exception == null
? Activator.CreateInstance(_errorType)
: Activator.CreateInstance(_errorType, exception);
error.Message = message;
error.Type = logLevel.ToString();
error.Time = DateTime.Now;
error.ApplicationName = "Hangfire";
try
{
_errorLog.Log(error);
}
catch (Exception ex) when (ex.IsCatchableExceptionType())
{
Debug.Print("Error: {0}\n{1}", ex.Message, ex.StackTrace);
}
return true;
}
}
}
#endif
}
================================================
FILE: src/Hangfire.Core/App_Packages/StackTraceFormatter/StackTraceFormatter.cs
================================================
#region Copyright (c) 2011 Atif Aziz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#endregion
// ReSharper disable All
namespace Hangfire
{
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Net;
using MoreLinq;
partial class StackTraceHtmlFragments : IStackTraceFormatter
{
public string BeforeType { get; set; }
public string AfterType { get; set; }
public string BeforeMethod { get; set; }
public string AfterMethod { get; set; }
public string BeforeParameterType { get; set; }
public string AfterParameterType { get; set; }
public string BeforeParameterName { get; set; }
public string AfterParameterName { get; set; }
public string BeforeFile { get; set; }
public string AfterFile { get; set; }
public string BeforeLine { get; set; }
public string AfterLine { get; set; }
public string BeforeFrame { get; set; }
public string AfterFrame { get; set; }
public string BeforeParameters { get; set; }
public string AfterParameters { get; set; }
string IStackTraceFormatter.Text(string text) => string.IsNullOrEmpty(text) ? string.Empty : WebUtility.HtmlEncode(text);
string IStackTraceFormatter.Type(string markup) => BeforeType + markup + AfterType;
string IStackTraceFormatter.Method(string markup) => BeforeMethod + markup + AfterMethod;
string IStackTraceFormatter.ParameterType(string markup) => BeforeParameterType + markup + AfterParameterType;
string IStackTraceFormatter.ParameterName(string markup) => BeforeParameterName + markup + AfterParameterName;
string IStackTraceFormatter.File(string markup) => BeforeFile + markup + AfterFile;
string IStackTraceFormatter.Line(string markup) => BeforeLine + markup + AfterLine;
string IStackTraceFormatter.BeforeFrame => BeforeFrame ?? string.Empty;
string IStackTraceFormatter.AfterFrame => AfterFrame ?? string.Empty;
string IStackTraceFormatter.BeforeParameters => BeforeParameters ?? string.Empty;
string IStackTraceFormatter.AfterParameters => AfterParameters ?? string.Empty;
}
partial interface IStackTraceFormatter
{
T Text (string text);
T Type (T markup);
T Method (T markup);
T ParameterType (T markup);
T ParameterName (T markup);
T File (T markup);
T Line (T markup);
T BeforeFrame { get; }
T AfterFrame { get; }
T BeforeParameters { get; }
T AfterParameters { get; }
}
static partial class StackTraceFormatter
{
static readonly StackTraceHtmlFragments DefaultStackTraceHtmlFragments = new StackTraceHtmlFragments();
public static string FormatHtml(string text, IStackTraceFormatter formatter)
{
return string.Concat(Format(text, formatter ?? DefaultStackTraceHtmlFragments));
}
public static IEnumerable Format(string text, IStackTraceFormatter formatter)
{
Debug.Assert(text != null);
var frames = StackTraceParser.Parse
(
text,
(idx, len, txt) => new
{
Index = idx,
End = idx + len,
Text = txt,
Markup = formatter.Text(txt),
},
(t, m) => new
{
Type = new { t.Index, t.End, Markup = formatter.Type(t.Markup) },
Method = new { m.Index, m.End, Markup = formatter.Method(m.Markup) }
},
(t, n) => new
{
Type = new { t.Index, t.End, Markup = formatter.ParameterType(t.Markup) },
Name = new { n.Index, n.End, Markup = formatter.ParameterName(n.Markup) }
},
(p, ps) => new { List = p, Parameters = ps.ToArray() },
(f, l) => new
{
File = f.Text.Length > 0
? new { f.Index, f.End, Markup = formatter.File(f.Markup) }
: null,
Line = l.Text.Length > 0
? new { l.Index, l.End, Markup = formatter.Line(l.Markup) }
: null,
},
(f, tm, p, fl) =>
from tokens in new[]
{
new[]
{
new { f.Index, End = f.Index, Markup = formatter.BeforeFrame },
tm.Type,
tm.Method,
new { p.List.Index, End = p.List.Index, Markup = formatter.BeforeParameters },
},
from pe in p.Parameters
from e in new[] { pe.Type, pe.Name }
select e,
new[]
{
new { Index = p.List.End, p.List.End, Markup = formatter.AfterParameters },
fl.File,
fl.Line,
new { Index = f.End, f.End, Markup = formatter.AfterFrame },
},
}
from token in tokens
where token != null
select token
);
return
from token in Enumerable.Repeat(new { Index = 0, End = 0, Markup = default(T) }, 1)
.Concat(from tokens in frames from token in tokens select token)
.Pairwise((prev, curr) => new { Previous = prev, Current = curr })
from m in new[]
{
formatter.Text(text.Substring(token.Previous.End, token.Current.Index - token.Previous.End)),
token.Current.Markup,
}
select m;
}
}
}
================================================
FILE: src/Hangfire.Core/App_Packages/StackTraceParser/StackTraceParser.cs
================================================
#region Copyright (c) 2011 Atif Aziz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#endregion
// ReSharper disable once CheckNamespace
namespace Hangfire
{
#region Imports
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
#endregion
// ReSharper disable once PartialTypeWithSinglePart
partial class StackTraceParser
{
const string Space = @"[\x20\t]";
const string NotSpace = @"[^\x20\t]";
static readonly Regex Regex = new Regex(@"
^
" + Space + @"*
\w+ " + Space + @"+
(?
(? " + NotSpace + @"+ ) \.
(? " + NotSpace + @"+? ) " + Space + @"*
(? \( ( " + Space + @"* \)
| (? .+?) " + Space + @"+ (? .+?)
(, " + Space + @"* (? .+?) " + Space + @"+ (? .+?) )* \) ) )
( " + Space + @"+
( # Microsoft .NET stack traces
\w+ " + Space + @"+
(? ( [a-z] \: # Windows rooted path starting with a drive letter
| / ) # *nix rooted path starting with a forward-slash
.+? )
\: \w+ " + Space + @"+
(? [0-9]+ ) \p{P}?
| # Mono stack traces
\[0x[0-9a-f]+\] " + Space + @"+ \w+ " + Space + @"+
<(? [^>]+ )>
:(? [0-9]+ )
)
)?
)
\s*
$",
RegexOptions.IgnoreCase
| RegexOptions.Multiline
| RegexOptions.ExplicitCapture
| RegexOptions.CultureInvariant
| RegexOptions.IgnorePatternWhitespace
| RegexOptions.Compiled,
// Cap the evaluation time to make it obvious should the expression
// fall into the "catastrophic backtracking" trap due to over
// generalization.
// https://github.com/atifaziz/StackTraceParser/issues/4
TimeSpan.FromMilliseconds(100));
public static IEnumerable Parse(
string text,
Func>, string, string, T> selector)
{
if (selector == null) throw new ArgumentNullException(nameof(selector));
return Parse(text, (idx, len, txt) => txt,
(t, m) => new { Type = t, Method = m },
(pt, pn) => new KeyValuePair(pt, pn),
// ReSharper disable once PossibleMultipleEnumeration
(pl, ps) => new { List = pl, Items = ps },
(fn, ln) => new { File = fn, Line = ln },
(f, tm, p, fl) => selector(f, tm.Type, tm.Method, p.List, p.Items, fl.File, fl.Line));
}
public static IEnumerable Parse(
string text,
Func tokenSelector,
Func methodSelector,
Func parameterSelector,
Func, TParameters> parametersSelector,
Func sourceLocationSelector,
Func selector)
{
if (tokenSelector == null) throw new ArgumentNullException(nameof(tokenSelector));
if (methodSelector == null) throw new ArgumentNullException(nameof(methodSelector));
if (parameterSelector == null) throw new ArgumentNullException(nameof(parameterSelector));
if (parametersSelector == null) throw new ArgumentNullException(nameof(parametersSelector));
if (sourceLocationSelector == null) throw new ArgumentNullException(nameof(sourceLocationSelector));
if (selector == null) throw new ArgumentNullException(nameof(selector));
return from Match m in Regex.Matches(text)
select m.Groups into groups
let pt = groups["pt"].Captures
let pn = groups["pn"].Captures
select selector(Token(groups["frame"], tokenSelector),
methodSelector(
Token(groups["type"], tokenSelector),
Token(groups["method"], tokenSelector)),
parametersSelector(
Token(groups["params"], tokenSelector),
from i in Enumerable.Range(0, pt.Count)
select parameterSelector(Token(pt[i], tokenSelector),
Token(pn[i], tokenSelector))),
sourceLocationSelector(Token(groups["file"], tokenSelector),
Token(groups["line"], tokenSelector)));
}
static T Token(Capture capture, Func tokenSelector)
{
return tokenSelector(capture.Index, capture.Length, capture.Value);
}
}
}
================================================
FILE: src/Hangfire.Core/AttemptsExceededAction.cs
================================================
// This file is part of Hangfire. Copyright © 2013-2014 Hangfire OÜ.
//
// Hangfire is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3
// of the License, or any later version.
//
// Hangfire is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with Hangfire. If not, see .
namespace Hangfire
{
///
/// Specifies a candidate state for a background job that will be chosen
/// by the filter after exceeding
/// the number of retry attempts.
///
public enum AttemptsExceededAction
{
///
/// Background job will be moved to the .
///
Fail = 0,
///
/// Background job will be moved to the .
///
Delete
}
}
================================================
FILE: src/Hangfire.Core/AutomaticRetryAttribute.cs
================================================
// This file is part of Hangfire. Copyright © 2014 Hangfire OÜ.
//
// Hangfire is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3
// of the License, or any later version.
//
// Hangfire is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with Hangfire. If not, see .
using System;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using Hangfire.Common;
using Hangfire.Logging;
using Hangfire.States;
using Hangfire.Storage;
using Newtonsoft.Json;
namespace Hangfire
{
///
/// Represents a job filter that performs automatic retries for
/// background jobs whose processing was failed due to an exception, with
/// a limited number of attempts.
///
///
///
/// Filter is added to the global
/// collection by default. Intervals between attempts are based on increasing
/// exponential back-off multiplier in seconds.
///
/// This filter works in a state election phase by changing the
/// candidate state from to the
/// when another retry should be attempted, or other state based on the value
/// of the property when attempts exceeded.
///
///
///
///
/// Disabling Automatic Retries
/// The following example shows how to disable automatic retries for
/// a specific job method by applying an attribute to a method.
///
/// Even if you disable filter,
/// your background jobs can still be executed several times, due to re-queue
/// on shutdown and other compensation logic that guarantees the at least
/// once processing.
///
///
///
/// Overriding Defaults
/// The following example shows how to override the default number of
/// retry attempts for all of the background jobs by modifying the global
/// collection.
///
///
///
/// Specifying Attempts Exceeded Action
/// The following example shows how to ignore a background job when
/// number of retry attempts exceed using the
/// property.
///
/// Choose action
/// when you aren't interested in processing background job that failed several
/// times.
///
///
///
///
///
public sealed class AutomaticRetryAttribute : JobFilterAttribute, IElectStateFilter, IApplyStateFilter
{
///
/// Represents the default number of retry attempts. This field is read-only.
///
///
/// The value of this field is 10 .
///
public static readonly int DefaultRetryAttempts = 10;
private static readonly Func DefaultDelayInSecondsByAttemptFunc = attempt =>
{
var random = new Random();
return (int)Math.Round(
Math.Pow(attempt - 1, 4) + 15 + random.Next(30) * attempt);
};
private readonly ILog _logger = LogProvider.For();
private readonly object _lockObject = new object();
private int _attempts;
private int[] _delaysInSeconds;
private Func _delayInSecondsByAttemptFunc;
private AttemptsExceededAction _onAttemptsExceeded;
private bool _logEvents;
private Type[] _onlyOn;
private Type[] _exceptOn;
///
/// Initializes a new instance of the
/// class with number.
///
public AutomaticRetryAttribute()
{
Attempts = DefaultRetryAttempts;
DelayInSecondsByAttemptFunc = DefaultDelayInSecondsByAttemptFunc;
LogEvents = true;
OnAttemptsExceeded = AttemptsExceededAction.Fail;
Order = 20;
}
///
/// Gets or sets the maximum number of automatic retry attempts.
///
/// Any non-negative number.
/// The value in a set operation is less than zero.
public int Attempts
{
get { lock (_lockObject) { return _attempts; } }
set
{
if (value < 0)
{
throw new ArgumentOutOfRangeException(nameof(value), @"Attempts value must be equal or greater than zero.");
}
lock (_lockObject)
{
_attempts = value;
}
}
}
///
/// Gets or sets the delays between attempts.
///
/// An array of non-negative numbers.
/// The value in a set operation is null.
/// The value contain one or more negative numbers.
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public int[] DelaysInSeconds
{
get { lock (_lockObject) { return _delaysInSeconds; } }
set
{
if (value != null)
{
if (value.Length == 0) throw new ArgumentNullException(nameof(value));
if (value.Any(static delay => delay < 0))
throw new ArgumentException(
$@"{nameof(DelaysInSeconds)} value must be an array of non-negative numbers.",
nameof(value));
}
lock (_lockObject) { _delaysInSeconds = value; }
}
}
///
/// Gets or sets a function using to get a delay by an attempt number.
///
/// The value in a set operation is null.
[JsonIgnore]
public Func DelayInSecondsByAttemptFunc
{
get { lock (_lockObject) { return _delayInSecondsByAttemptFunc;} }
set
{
if (value == null) throw new ArgumentNullException(nameof(value));
lock (_lockObject) { _delayInSecondsByAttemptFunc = value; }
}
}
///
/// Gets or sets a candidate state for a background job that
/// will be chosen when number of retry attempts exceeded.
///
[JsonProperty(DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public AttemptsExceededAction OnAttemptsExceeded
{
get { lock (_lockObject) { return _onAttemptsExceeded; } }
set { lock (_lockObject) { _onAttemptsExceeded = value; } }
}
///
/// Gets or sets whether to produce log messages on retry attempts.
///
[JsonProperty(DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[DefaultValue(true)]
public bool LogEvents
{
get { lock (_lockObject) { return _logEvents; } }
set { lock (_lockObject) { _logEvents = value; } }
}
///
/// Gets a sets an array of exception types that will be used to determine whether
/// automatic retry logic should be attempted to run. By default it will be run on
/// any exception, but this property allow to reduce it only to some specific
/// exception types and their subtypes.
///
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public Type[] OnlyOn
{
get { lock (_lockObject) { return _onlyOn; } }
set { lock (_lockObject) { _onlyOn = value; } }
}
///
/// Gets or sets the array of exception types on which the automatic retry mechanism
/// should not be applied.
///
///
/// An array of objects representing the exception types to
/// be excluded from automatic retries.
///
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public Type[] ExceptOn
{
get { lock (_lockObject) { return _exceptOn; } }
set { lock (_lockObject) { _exceptOn = value; } }
}
///
public void OnStateElection(ElectStateContext context)
{
var failedState = context.CandidateState as FailedState;
if (failedState == null)
{
// This filter accepts only failed job state.
return;
}
if (_onlyOn != null && _onlyOn.Length > 0)
{
var exceptionType = failedState.Exception.GetType();
var satisfied = false;
foreach (var onlyOn in _onlyOn)
{
if (onlyOn.GetTypeInfo().IsAssignableFrom(exceptionType.GetTypeInfo()))
{
satisfied = true;
break;
}
}
if (!satisfied) return;
}
if (_exceptOn != null && _exceptOn.Length > 0)
{
var exceptionType = failedState.Exception.GetType();
var satisfied = true;
foreach (var exceptOn in _exceptOn)
{
if (exceptOn.GetTypeInfo().IsAssignableFrom(exceptionType.GetTypeInfo()))
{
satisfied = false;
break;
}
}
if (!satisfied) return;
}
var retryAttempt = context.GetJobParameter("RetryCount", allowStale: true) + 1;
if (retryAttempt <= Attempts)
{
ScheduleAgainLater(context, retryAttempt, failedState);
}
else if (retryAttempt > Attempts && OnAttemptsExceeded == AttemptsExceededAction.Delete)
{
TransitionToDeleted(context, failedState);
}
else
{
if (LogEvents)
{
_logger.ErrorException(
$"Failed to process the job '{context.BackgroundJob.Id}': an exception occurred.",
failedState.Exception);
}
}
}
///
public void OnStateApplied(ApplyStateContext context, IWriteOnlyTransaction transaction)
{
if (context.NewState is ScheduledState &&
context.NewState.Reason != null &&
context.NewState.Reason.StartsWith("Retry attempt", StringComparison.OrdinalIgnoreCase))
{
transaction.AddToSet("retries", context.BackgroundJob.Id);
}
}
///
public void OnStateUnapplied(ApplyStateContext context, IWriteOnlyTransaction transaction)
{
if (ScheduledState.StateName.Equals(context.OldStateName, StringComparison.OrdinalIgnoreCase) ||
FailedState.StateName.Equals(context.OldStateName, StringComparison.OrdinalIgnoreCase))
{
transaction.RemoveFromSet("retries", context.BackgroundJob.Id);
}
}
///
/// Schedules the job to run again later. See .
///
/// The state context.
/// The count of retry attempts made so far.
/// Object which contains details about the current failed state.
private void ScheduleAgainLater(ElectStateContext context, int retryAttempt, FailedState failedState)
{
context.SetJobParameter("RetryCount", retryAttempt);
int delayInSeconds;
if (_delaysInSeconds != null)
{
delayInSeconds = retryAttempt <= _delaysInSeconds.Length
? _delaysInSeconds[retryAttempt - 1]
: _delaysInSeconds.Last();
}
else
{
delayInSeconds = DelayInSecondsByAttemptFunc(retryAttempt);
}
var delay = TimeSpan.FromSeconds(delayInSeconds);
const int maxMessageLength = 50;
var exceptionMessage = failedState.Exception.Message.Length > maxMessageLength
? failedState.Exception.Message.Substring(0, maxMessageLength - 1) + "…"
: failedState.Exception.Message;
// If attempt number is less than max attempts, we should
// schedule the job to run again later.
var reason = $"Retry attempt {retryAttempt} of {Attempts}: {exceptionMessage}";
context.CandidateState = delay == TimeSpan.Zero
? (IState)new EnqueuedState { Reason = reason }
: new ScheduledState(delay) { Reason = reason };
if (LogEvents)
{
_logger.WarnException(
$"Failed to process the job '{context.BackgroundJob.Id}': an exception occurred. Retry attempt {retryAttempt} of {Attempts} will be performed in {delay}.",
failedState.Exception);
}
}
///
/// Transition the candidate state to the deleted state.
///
/// The state context.
/// Object which contains details about the current failed state.
private void TransitionToDeleted(ElectStateContext context, FailedState failedState)
{
context.CandidateState = new DeletedState(new ExceptionInfo(failedState.Exception))
{
Reason = Attempts > 0
? "Exceeded the maximum number of retry attempts."
: "Retries were disabled for this job."
};
if (LogEvents)
{
_logger.WarnException(
$"Failed to process the job '{context.BackgroundJob.Id}': an exception occured. Job was automatically deleted because the retry attempt count exceeded {Attempts}.",
failedState.Exception);
}
}
}
}
================================================
FILE: src/Hangfire.Core/BackgroundJob.Instance.cs
================================================
// This file is part of Hangfire. Copyright © 2013-2014 Hangfire OÜ.
//
// Hangfire is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3
// of the License, or any later version.
//
// Hangfire is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with Hangfire. If not, see .
using System;
using System.Collections.Generic;
using Hangfire.Annotations;
using Hangfire.Common;
namespace Hangfire
{
partial class BackgroundJob
{
///
public BackgroundJob([NotNull] string id, [CanBeNull] Job job, DateTime createdAt)
: this(id, job, createdAt, null)
{
}
///
public BackgroundJob([NotNull] string id, [CanBeNull] Job job, DateTime createdAt, [CanBeNull] IReadOnlyDictionary parametersSnapshot)
{
if (id == null) throw new ArgumentNullException(nameof(id));
Id = id;
Job = job;
CreatedAt = createdAt;
ParametersSnapshot = parametersSnapshot;
}
///
[NotNull]
public string Id { get; }
///
[CanBeNull]
public Job Job { get; }
///
public DateTime CreatedAt { get; }
///
[CanBeNull]
public IReadOnlyDictionary ParametersSnapshot { get; }
}
}
================================================
FILE: src/Hangfire.Core/BackgroundJob.cs
================================================
// This file is part of Hangfire. Copyright © 2013-2014 Hangfire OÜ.
//
// Hangfire is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3
// of the License, or any later version.
//
// Hangfire is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with Hangfire. If not, see .
using System;
using System.Linq.Expressions;
using System.Threading;
using System.Threading.Tasks;
using Hangfire.Annotations;
using Hangfire.States;
namespace Hangfire
{
///
/// Provides static methods for creating fire-and-forget , delayed
/// jobs and continuations as well as re-queue and delete existing
/// background jobs.
///
///
///
/// This class is a wrapper for the
/// interface and its default implementation,
/// class, that was created for the most simple scenarios. Please consider
/// using the types above in real world applications.
/// This class also contains undocumented constructor and instance
/// members. They are hidden to not to confuse new users. You can freely
/// use them in low-level API.
///
///
///
///
///
///
public partial class BackgroundJob
{
private static readonly Func DefaultFactory = static () => new BackgroundJobClient();
private static readonly object ClientFactoryLock = new object();
private static Func _clientFactory;
internal static Func ClientFactory
{
get
{
lock (ClientFactoryLock)
{
return _clientFactory ?? DefaultFactory;
}
}
set
{
lock (ClientFactoryLock)
{
_clientFactory = value;
}
}
}
///
/// Creates a new fire-and-forget job based on a given method call expression.
///
/// Method call expression that will be marshalled to a server.
/// Unique identifier of a background job.
///
///
/// is .
///
///
///
///
public static string Enqueue([NotNull, InstantHandle] Expression methodCall)
{
return ClientFactory().Enqueue(methodCall);
}
///
/// Creates a new fire-and-forget job based on a given method call expression and places it
/// to the specified queue.
///
/// Default queue for the background job.
/// Method call expression that will be marshalled to a server.
/// Unique identifier of a background job.
///
///
/// is .
///
///
///
///
public static string Enqueue([NotNull] string queue, [NotNull, InstantHandle] Expression methodCall)
{
return ClientFactory().Enqueue(queue, methodCall);
}
///
/// Creates a new fire-and-forget job based on a given method call expression.
///
/// Method call expression that will be marshalled to a server.
/// Unique identifier of a background job.
///
///
/// is .
///
///
///
///
public static string Enqueue([NotNull, InstantHandle] Expression> methodCall)
{
return ClientFactory().Enqueue(methodCall);
}
///
/// Creates a new fire-and-forget job based on a given method call expression and places it
/// to the specified queue.
///
/// Default queue for the background job.
/// Method call expression that will be marshalled to a server.
/// Unique identifier of a background job.
///
///
/// is .
///
///
///
///
public static string Enqueue([NotNull] string queue, [NotNull, InstantHandle] Expression> methodCall)
{
return ClientFactory().Enqueue(queue, methodCall);
}
///
/// Creates a new fire-and-forget job based on a given method call expression.
///
/// Method call expression that will be marshalled to a server.
/// Unique identifier of a background job.
///
///
/// is .
///
///
///
///
public static string Enqueue([NotNull, InstantHandle] Expression> methodCall)
{
return ClientFactory().Enqueue(methodCall);
}
///
/// Creates a new fire-and-forget job based on a given method call expression and places it
/// to the specified queue.
///
/// Default queue for the background job.
/// Method call expression that will be marshalled to a server.
/// Unique identifier of a background job.
///
///
/// is .
///
///
///
///
public static string Enqueue([NotNull] string queue, [NotNull, InstantHandle] Expression> methodCall)
{
return ClientFactory().Enqueue(queue, methodCall);
}
///
/// Creates a new fire-and-forget job based on a given method call expression.
///
/// Method call expression that will be marshalled to a server.
/// Unique identifier of a background job.
///
///
/// is .
///
///
///
///
public static string Enqueue([NotNull, InstantHandle] Expression> methodCall)
{
return ClientFactory().Enqueue(methodCall);
}
///
/// Creates a new fire-and-forget job based on a given method call expression and places it
/// to the specified queue.
///
/// Default queue for the background job.
/// Method call expression that will be marshalled to a server.
/// Unique identifier of a background job.
///
///
/// is .
///
///
///
///
public static string Enqueue([NotNull] string queue, [NotNull, InstantHandle] Expression> methodCall)
{
return ClientFactory().Enqueue(queue, methodCall);
}
///
/// Creates a new background job based on a specified method
/// call expression and schedules it to be enqueued after a given delay.
///
///
/// Instance method call expression that will be marshalled to the Server.
/// Delay, after which the job will be enqueued.
/// Unique identifier of the created job.
public static string Schedule(
[NotNull, InstantHandle] Expression methodCall,
TimeSpan delay)
{
return ClientFactory().Schedule(methodCall, delay);
}
///
/// Creates a new background job based on a specified method call expression and schedules it
/// to be enqueued to the specified queue after a given delay.
///
///
/// Default queue for the background job.
/// Instance method call expression that will be marshalled to the Server.
/// Delay, after which the job will be enqueued.
/// Unique identifier of the created job.
public static string Schedule(
[NotNull] string queue,
[NotNull, InstantHandle] Expression methodCall,
TimeSpan delay)
{
return ClientFactory().Schedule(queue, methodCall, delay);
}
///
/// Creates a new background job based on a specified method
/// call expression and schedules it to be enqueued after a given delay.
///
///
/// Instance method call expression that will be marshalled to the Server.
/// Delay, after which the job will be enqueued.
/// Unique identifier of the created job.
public static string Schedule(
[NotNull, InstantHandle] Expression> methodCall,
TimeSpan delay)
{
return ClientFactory().Schedule(methodCall, delay);
}
///
/// Creates a new background job based on a specified method call expression and schedules it
/// to be enqueued to the specified queue after a given delay.
///
///
/// Default queue for the background job.
/// Instance method call expression that will be marshalled to the Server.
/// Delay, after which the job will be enqueued.
/// Unique identifier of the created job.
public static string Schedule(
[NotNull] string queue,
[NotNull, InstantHandle] Expression> methodCall,
TimeSpan delay)
{
return ClientFactory().Schedule(queue, methodCall, delay);
}
///
/// Creates a new background job based on a specified method call expression
/// and schedules it to be enqueued at the given moment of time.
///
///
/// Method call expression that will be marshalled to the Server.
/// The moment of time at which the job will be enqueued.
/// Unique identifier of a created job.
public static string Schedule(
[NotNull, InstantHandle] Expression methodCall,
DateTimeOffset enqueueAt)
{
return ClientFactory().Schedule(methodCall, enqueueAt);
}
///
/// Creates a new background job based on a specified method call expression and schedules it
/// to be enqueued to the specified queue at the given moment of time.
///
///
/// Default queue for the background job.
/// Method call expression that will be marshalled to the Server.
/// The moment of time at which the job will be enqueued.
/// Unique identifier of a created job.
public static string Schedule(
[NotNull] string queue,
[NotNull, InstantHandle] Expression methodCall,
DateTimeOffset enqueueAt)
{
return ClientFactory().Schedule(queue, methodCall, enqueueAt);
}
///
/// Creates a new background job based on a specified method call expression
/// and schedules it to be enqueued at the given moment of time.
///
///
/// Method call expression that will be marshalled to the Server.
/// The moment of time at which the job will be enqueued.
/// Unique identifier of a created job.
public static string Schedule(
[NotNull, InstantHandle] Expression> methodCall,
DateTimeOffset enqueueAt)
{
return ClientFactory().Schedule(methodCall, enqueueAt);
}
///
/// Creates a new background job based on a specified method call expression and schedules it
/// to be enqueued to the specified queue at the given moment of time.
///
///
/// Default queue for the background job.
/// Method call expression that will be marshalled to the Server.
/// The moment of time at which the job will be enqueued.
/// Unique identifier of a created job.
public static string Schedule(
[NotNull] string queue,
[NotNull, InstantHandle] Expression> methodCall,
DateTimeOffset enqueueAt)
{
return ClientFactory().Schedule(queue, methodCall, enqueueAt);
}
///
/// Creates a new background job based on a specified instance method
/// call expression and schedules it to be enqueued after a given delay.
///
///
/// Type whose method will be invoked during job processing.
/// Instance method call expression that will be marshalled to the Server.
/// Delay, after which the job will be enqueued.
/// Unique identifier of the created job.
public static string Schedule(
[NotNull, InstantHandle] Expression> methodCall,
TimeSpan delay)
{
return ClientFactory().Schedule(methodCall, delay);
}
///
/// Creates a new background job based on a specified instance method call expression and schedules
/// it to be enqueued to the specified queue after a given delay.
///
///
/// Type whose method will be invoked during job processing.
/// Default queue for the background job.
/// Instance method call expression that will be marshalled to the Server.
/// Delay, after which the job will be enqueued.
/// Unique identifier of the created job.
public static string Schedule(
[NotNull] string queue,
[NotNull, InstantHandle] Expression> methodCall,
TimeSpan delay)
{
return ClientFactory().Schedule(queue, methodCall, delay);
}
///
/// Creates a new background job based on a specified instance method
/// call expression and schedules it to be enqueued after a given delay.
///
///
/// Type whose method will be invoked during job processing.
/// Instance method call expression that will be marshalled to the Server.
/// Delay, after which the job will be enqueued.
/// Unique identifier of the created job.
public static string Schedule(
[NotNull, InstantHandle] Expression> methodCall,
TimeSpan delay)
{
return ClientFactory().Schedule(methodCall, delay);
}
///
/// Creates a new background job based on a specified instance method call expression and schedules
/// it to be enqueued to the specified queue after a given delay.
///
///
/// Type whose method will be invoked during job processing.
/// Default queue for the background job.
/// Instance method call expression that will be marshalled to the Server.
/// Delay, after which the job will be enqueued.
/// Unique identifier of the created job.
public static string Schedule(
[NotNull] string queue,
[NotNull, InstantHandle] Expression> methodCall,
TimeSpan delay)
{
return ClientFactory().Schedule(queue, methodCall, delay);
}
///
/// Creates a new background job based on a specified method call expression
/// and schedules it to be enqueued at the given moment of time.
///
///
/// The type whose method will be invoked during the job processing.
/// Method call expression that will be marshalled to the Server.
/// The moment of time at which the job will be enqueued.
/// Unique identifier of a created job.
public static string Schedule(
[NotNull, InstantHandle] Expression> methodCall,
DateTimeOffset enqueueAt)
{
return ClientFactory().Schedule(methodCall, enqueueAt);
}
///
/// Creates a new background job based on a specified method call expression and schedules it
/// to be enqueued to the specified queue at the given moment of time.
///
///
/// The type whose method will be invoked during the job processing.
/// Default queue for the background job.
/// Method call expression that will be marshalled to the Server.
/// The moment of time at which the job will be enqueued.
/// Unique identifier of a created job.
public static string Schedule(
[NotNull] string queue,
[NotNull, InstantHandle] Expression> methodCall,
DateTimeOffset enqueueAt)
{
return ClientFactory().Schedule(queue, methodCall, enqueueAt);
}
///
/// Creates a new background job based on a specified method call expression
/// and schedules it to be enqueued at the given moment of time.
///
///
/// The type whose method will be invoked during the job processing.
/// Method call expression that will be marshalled to the Server.
/// The moment of time at which the job will be enqueued.
/// Unique identifier of a created job.
public static string Schedule(
[NotNull, InstantHandle] Expression> methodCall,
DateTimeOffset enqueueAt)
{
return ClientFactory().Schedule(methodCall, enqueueAt);
}
///
/// Creates a new background job based on a specified method call expression and schedules it
/// to be enqueued to the specified queue at the given moment of time.
///
///
/// The type whose method will be invoked during the job processing.
/// Default queue for the background job.
/// Method call expression that will be marshalled to the Server.
/// The moment of time at which the job will be enqueued.
/// Unique identifier of a created job.
public static string Schedule(
[NotNull] string queue,
[NotNull, InstantHandle] Expression> methodCall,
DateTimeOffset enqueueAt)
{
return ClientFactory().Schedule(queue, methodCall, enqueueAt);
}
///
/// Changes state of a job with the specified
/// to the .
///
///
///
/// An identifier, that will be used to find a job.
/// True on a successful state transition, false otherwise.
public static bool Delete([NotNull] string jobId)
{
return ClientFactory().Delete(jobId);
}
///
/// Changes state of a job with the specified
/// to the . State change is only performed
/// if current job state is equal to the value.
///
///
///
/// Identifier of job, whose state is being changed.
/// Current state assertion, or null if unneeded.
/// True, if state change succeeded, otherwise false.
public static bool Delete([NotNull] string jobId, [CanBeNull] string fromState)
{
return ClientFactory().Delete(jobId, fromState);
}
///
/// Changes state of a job with the specified
/// to the .
///
///
/// Identifier of job, whose state is being changed.
/// True, if state change succeeded, otherwise false.
public static bool Requeue([NotNull] string jobId)
{
return ClientFactory().Requeue(jobId);
}
///
/// Changes state of a job with the specified
/// to the . If value
/// is not null, state change will be performed only if the current state name
/// of a job equal to the given value.
///
///
/// Identifier of job, whose state is being changed.
/// Current state assertion, or null if unneeded.
/// True, if state change succeeded, otherwise false.
public static bool Requeue([NotNull] string jobId, [CanBeNull] string fromState)
{
return ClientFactory().Requeue(jobId, fromState);
}
///
/// Changes state of a job with the specified
/// to the .
///
///
/// Identifier of job, whose state is being changed.
/// Delay, after which the job will be scheduled.
/// True, if state change succeeded, otherwise false.
public static bool Reschedule([NotNull] string jobId, TimeSpan delay)
{
return ClientFactory().Reschedule(jobId, delay);
}
///
/// Changes state of a job with the specified
/// to the . If value
/// is not null, state change will be performed only if the current state name
/// of a job equal to the given value.
///
///
/// Identifier of job, whose state is being changed.
/// Delay, after which the job will be scheduled.
/// Current state assertion, or null if unneeded.
/// True, if state change succeeded, otherwise false.
public static bool Reschedule([NotNull] string jobId, TimeSpan delay, [CanBeNull] string fromState)
{
return ClientFactory().Reschedule(jobId, delay, fromState);
}
///
/// Changes state of a job with the specified
/// to the .
///
///
/// Identifier of job, whose state is being changed.
/// The moment of time at which the job will be rescheduled.
/// True, if state change succeeded, otherwise false.
public static bool Reschedule([NotNull] string jobId, DateTimeOffset enqueueAt)
{
return ClientFactory().Reschedule(jobId, enqueueAt);
}
///
/// Changes state of a job with the specified
/// to the . If value
/// is not null, state change will be performed only if the current state name
/// of a job equal to the given value.
///
///
/// Identifier of job, whose state is being changed.
/// The moment of time at which the job will be rescheduled.
/// Current state assertion, or null if unneeded.
/// True, if state change succeeded, otherwise false.
public static bool Reschedule([NotNull] string jobId, DateTimeOffset enqueueAt, [CanBeNull] string fromState)
{
return ClientFactory().Reschedule(jobId, enqueueAt, fromState);
}
///
/// Creates a new background job that will wait for a successful completion
/// of another background job to be enqueued.
///
/// Identifier of a background job to wait completion for.
/// Method call expression that will be marshalled to a server.
/// Unique identifier of a created job.
[Obsolete("Deprecated for clarity, please use ContinueJobWith method with the same arguments. Will be removed in 2.0.0.")]
public static string ContinueWith(
[NotNull] string parentId,
[NotNull, InstantHandle] Expression methodCall)
{
return ContinueJobWith(parentId, methodCall);
}
///
/// Creates a new background job that will wait for a successful completion
/// of another background job to be enqueued.
///
/// Identifier of a background job to wait completion for.
/// Method call expression that will be marshalled to a server.
/// Unique identifier of a created job.
public static string ContinueJobWith(
[NotNull] string parentId,
[NotNull, InstantHandle] Expression methodCall)
{
return ClientFactory().ContinueJobWith(parentId, methodCall);
}
///
/// Creates a new background job that will wait for a successful completion
/// of another background job to be enqueued.
///
/// Identifier of a background job to wait completion for.
/// Method call expression that will be marshalled to a server.
/// Unique identifier of a created job.
[Obsolete("Deprecated for clarity, please use ContinueJobWith method with the same arguments. Will be removed in 2.0.0.")]
public static string ContinueWith(
[NotNull] string parentId,
[NotNull, InstantHandle] Expression> methodCall)
{
return ContinueJobWith(parentId, methodCall);
}
///
/// Creates a new background job that will wait for a successful completion
/// of another background job to be enqueued.
///
/// Identifier of a background job to wait completion for.
/// Method call expression that will be marshalled to a server.
/// Unique identifier of a created job.
public static string ContinueJobWith(
[NotNull] string parentId,
[NotNull, InstantHandle] Expression> methodCall)
{
return ClientFactory().ContinueJobWith(parentId, methodCall);
}
///
/// Creates a new background job that will wait for another background job to be enqueued.
///
/// Identifier of a background job to wait completion for.
/// Method call expression that will be marshalled to a server.
/// Continuation options.
/// Unique identifier of a created job.
[Obsolete("Deprecated for clarity, please use ContinueJobWith method with the same arguments. Will be removed in 2.0.0.")]
public static string ContinueWith(
[NotNull] string parentId,
[NotNull, InstantHandle] Expression methodCall,
JobContinuationOptions options)
{
return ContinueJobWith(parentId, methodCall, options);
}
///
/// Creates a new background job that will wait for another background job to be enqueued.
///
/// Identifier of a background job to wait completion for.
/// Method call expression that will be marshalled to a server.
/// Continuation options.
/// Unique identifier of a created job.
public static string ContinueJobWith(
[NotNull] string parentId,
[NotNull, InstantHandle] Expression methodCall,
JobContinuationOptions options)
{
return ClientFactory().ContinueJobWith(parentId, methodCall, options);
}
///
/// Creates a new background job that will wait for another background job to be enqueued to the
/// specified queue.
///
/// Identifier of a background job to wait completion for.
/// Default queue for the continuation.
/// Method call expression that will be marshalled to a server.
/// Continuation options.
/// Unique identifier of a created job.
public static string ContinueJobWith(
[NotNull] string parentId,
[NotNull] string queue,
[NotNull, InstantHandle] Expression methodCall,
JobContinuationOptions options = JobContinuationOptions.OnlyOnSucceededState)
{
return ClientFactory().ContinueJobWith(parentId, queue, methodCall, options: options);
}
///
/// Creates a new background job that will wait for another background job to be enqueued.
///
/// Identifier of a background job to wait completion for.
/// Method call expression that will be marshalled to a server.
/// Continuation options. By default,
/// is used.
/// Unique identifier of a created job.
[Obsolete("Deprecated for clarity, please use ContinueJobWith method with the same arguments. Will be removed in 2.0.0.")]
public static string ContinueWith(
[NotNull] string parentId,
[NotNull, InstantHandle] Expression> methodCall,
JobContinuationOptions options = JobContinuationOptions.OnlyOnSucceededState)
{
return ContinueJobWith(parentId, methodCall, options);
}
///
/// Creates a new background job that will wait for another background job to be enqueued.
///
/// Identifier of a background job to wait completion for.
/// Method call expression that will be marshalled to a server.
/// Continuation options. By default,
/// is used.
/// Unique identifier of a created job.
public static string ContinueJobWith(
[NotNull] string parentId,
[NotNull, InstantHandle] Expression> methodCall,
JobContinuationOptions options = JobContinuationOptions.OnlyOnSucceededState)
{
return ClientFactory().ContinueJobWith(parentId, methodCall, options: options);
}
///
/// Creates a new background job that will wait for another background job to be enqueued to the
/// specified queue.
///
/// Identifier of a background job to wait completion for.
/// Default queue for the continuation.
/// Method call expression that will be marshalled to a server.
/// Continuation options. By default,
/// is used.
/// Unique identifier of a created job.
public static string ContinueJobWith(
[NotNull] string parentId,
[NotNull] string queue,
[NotNull, InstantHandle] Expression> methodCall,
JobContinuationOptions options = JobContinuationOptions.OnlyOnSucceededState)
{
return ClientFactory().ContinueJobWith(parentId, queue, methodCall, options: options);
}
///
/// Creates a new background job that will wait for another background job to be enqueued.
///
/// Identifier of a background job to wait completion for.
/// Method call expression that will be marshalled to a server.
/// Continuation options.
/// Unique identifier of a created job.
[Obsolete("Deprecated for clarity, please use ContinueJobWith method with the same arguments. Will be removed in 2.0.0.")]
public static string ContinueWith(
[NotNull] string parentId,
[NotNull, InstantHandle] Expression