You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.
Scoped lifetime of IUpdateManager<TBot> and polling functionality built in it don't play well together. An entity that performs polling should be a singleton.
IUpdateManager<TBot> functionality should be split to two interfaces:
IUpdateDispatcher<TBot> that performs dispatching and could has either scoped or transient lifetime
An entity that performs actual polling and has dependency on a factory that creates IUpdateDisptacher<TBot> instance and has singleton lifetime so it correctly incapsulates update offset
The text was updated successfully, but these errors were encountered:
Scoped lifetime of
IUpdateManager<TBot>
and polling functionality built in it don't play well together. An entity that performs polling should be a singleton.IUpdateManager<TBot>
functionality should be split to two interfaces:IUpdateDispatcher<TBot>
that performs dispatching and could has either scoped or transient lifetimeIUpdateDisptacher<TBot>
instance and has singleton lifetime so it correctly incapsulates update offsetThe text was updated successfully, but these errors were encountered: