Open s3YwCf2ZbfJG4SHAfjQMAjtsf opened 2 years ago
How would I use this with some server other than IISServerOptions
@s3YwCf2ZbfJG4SHAfjQMAjtsf ?
Unfortunately, I only know IIS. What are you using instead of IIS?
I am hoping that Crystal Quartz will get upgraded.
Unfortunately, I think this project might be on hold or "dead".
Unfortunately, I only know IIS. What are you using instead of IIS?
I am using Kestrel, it is the default in ASP.NET Core 6.
I am hoping that Crystal Quartz will get upgraded.
I'm hoping that as well.
Unfortunately, I think this project might be on hold or "dead".
It would be great to draw some attention to it, I think this would be useful for me with my customers, hopefully I can contribute some time into upgrading this to ASP.NET Core 6. It is the latest LTS so I believe it should be prioritized instead of version 7.
// Oscar
There are 3 pull requests pending, so I am not sure spending the time without forking to a new Github will help.
public void ConfigureServices(IServiceCollection services)
{
// If using Kestrel:
services.Configure<KestrelServerOptions>(options =>
{
options.AllowSynchronousIO = true;
});
// If using IIS:
services.Configure<IISServerOptions>(options =>
{
options.AllowSynchronousIO = true;
});
}
There are 3 pull requests pending, so I am not sure spending the time without forking to a new Github will help.
public void ConfigureServices(IServiceCollection services) { // If using Kestrel: services.Configure<KestrelServerOptions>(options => { options.AllowSynchronousIO = true; }); // If using IIS: services.Configure<IISServerOptions>(options => { options.AllowSynchronousIO = true; }); }
Hi thanks for the reply, I will try that out when I find the time. And yes, sadly maybe this project is dead.
I was able to use a middleware call to may this change only for that CrystalQuartz endpoints
public static void ApplyWorkaroundForAllowSynchronousIO(IApplicationBuilder app) =>
app.Use(
async (context, next) =>
{
if (context.Request.Path.StartsWithSegments("/quartz")) {
var feature = context.Features.Get<IHttpBodyControlFeature>();
if (feature != null) {
feature.AllowSynchronousIO = true;
}
}
await next();
}
);
I was able to use a middleware call to may this change only for that CrystalQuartz endpoints
public static void ApplyWorkaroundForAllowSynchronousIO(IApplicationBuilder app) => app.Use( async (context, next) => { if (context.Request.Path.StartsWithSegments("/quartz")) { var feature = context.Features.Get<IHttpBodyControlFeature>(); if (feature != null) { feature.AllowSynchronousIO = true; } } await next(); } );
Awesome, thanks! 😄
Is this workaround still the solution for the error below?