@@ -64,7 +64,6 @@ public BackgroundJobServerHostedService(
6464#endif
6565
6666#if NETSTANDARD2_1 || NETCOREAPP3_0_OR_GREATER
67- [ Obsolete ( "This constructor uses an obsolete constructor overload of the BackgroundJobServer type that will be removed in 2.0.0." ) ]
6867 public BackgroundJobServerHostedService (
6968 [ NotNull ] JobStorage storage ,
7069 [ NotNull ] BackgroundJobServerOptions options ,
@@ -77,7 +76,6 @@ public BackgroundJobServerHostedService(
7776 }
7877#endif
7978
80- [ Obsolete ( "This constructor uses an obsolete constructor overload of the BackgroundJobServer type that will be removed in 2.0.0." ) ]
8179 public BackgroundJobServerHostedService (
8280 [ NotNull ] JobStorage storage ,
8381 [ NotNull ] BackgroundJobServerOptions options ,
@@ -157,10 +155,7 @@ public void Dispose()
157155 private void InitializeProcessingServer ( )
158156 {
159157 _processingServer = _factory != null && _performer != null && _stateChanger != null
160- #pragma warning disable 618
161- ? new BackgroundJobServer ( _options , _storage , _additionalProcesses , null , null , _factory , _performer ,
162- _stateChanger )
163- #pragma warning restore 618
158+ ? new BackgroundJobServer ( _options , _storage , _additionalProcesses , _factory , _performer , _stateChanger )
164159 : new BackgroundJobServer ( _options , _storage , _additionalProcesses ) ;
165160 }
166161
0 commit comments