v0.45.2877
- Breaking: Asynchronous subscribers are now disabled by default, i.e.,
any implementations ofISubscribeAsynchronousTo<,,>
wont get invoked
unless enabledtheeventFlowOptions.Configure(c => IsAsynchronousSubscribersEnabled = true);
ITaskRunner
has been removed and asynchronous subscribers are now
invoked using a new scheduled job that's scheduled to run right after the
domain events are emitted. Using theITaskRunner
led to unexpected task
terminations, especially if EventFlow was hosted in IIS. If enabling
asynchronous subscribers, please make sure to configure proper job
scheduling, e.g. by using theEventFlow.Hangfire
NuGet package. The default
job scheduler isInstantJobScheduler
, which executes jobs synchronously,
giving a end result similar to that of synchronous subscribers - Breaking:
InstantJobScheduler
, the default in-memory scheduler if nothing
is configured, now swallows all job exceptions and logs them as errors. This
ensure that theInstantJobScheduler
behaves as any other out-of-process
job scheduler