-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timer doesn't start on start of service. #1103
Comments
Forgot to say, that this issue is only when I start service via IIS. |
|
By default, IIS starts the application pool on demand and then shuts it down after a while if there are no requests. |
@andersjonsson thank you, |
I have service using SoapCore.
There's some transient SoapEndpoints
builder.Services.AddTransient<ICarService, CarService>(); app.UseSoapEndpoint<ICarService>("/dict/Car.asmx", new SoapEncoderOptions());
and Timer. as HostedService
builder.Services.AddSingleton<BatchTimerService>(); builder.Services.AddHostedService(sp => sp.GetRequiredService<BatchTimerService>());
And I have strange situation when Timer doesn't start until one of methods is called.
I don't know, but maybe it's normal situation. Because it's my first SOAP project.
The text was updated successfully, but these errors were encountered: