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
Is your feature request related to a specific problem? Or an existing feature? Please describe.
We have noticed increased allocations related to creating the Context object. This can be easily avoided if Pollu provides built-in support for pooling or at least slightly change the internal implementation of Context so we can easily reset it to default state.
Currently, this is not achievable because of these read-only properties:
OperationId
CorrelationId
Describe your proposed or preferred solution:
We want to extend the Context API with the following static methods:
Is your feature request related to a specific problem? Or an existing feature? Please describe.
We have noticed increased allocations related to creating the
Context
object. This can be easily avoided if Pollu provides built-in support for pooling or at least slightly change the internal implementation ofContext
so we can easily reset it to default state.Currently, this is not achievable because of these read-only properties:
OperationId
CorrelationId
Describe your proposed or preferred solution:
We want to extend the
Context
API with the following static methods:Alternatively, we can introduce a new
ContextPool
static class.The pool can be also used internally to improve Polly performance.
Describe any alternative options you've considered:
Simpler solution is to make the following changes to
Context
class:We would just derive from
Context
and handle the pooling ourselves.Any additional info?
For pooling support, we need implementation of the pool, and we can either:
The text was updated successfully, but these errors were encountered: