Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

IAsyncDisposable Only support for scoped registrations -(V4?) (V3?)

Open VaclavK opened this issue 2 years ago • 2 comments

I am trying to determine if the Azure functions DI model is expected to work for (scoped) registration that expose only IAsyncDisposable... (my triggering point is ServiceBusClient in Azure.Messaging.ServiceBus but the question is really generic)

I do not see their DisposeAsync called, whereas their Dispose is (if I flick them to IDisposable)

I am seeing disconnected remarks/documentation hence this ticket in an attempt to come a full understanding

seeing various core PRs/comments etc that lead me to an understanding of support at core level (host etc) but not for DI scopes (and what they contain)

VaclavK avatar Mar 31 '22 15:03 VaclavK

Hi @fabiocav / @pragnagopa , Can you please check if we can give any insights here.

v-bbalaiagar avatar Apr 05 '22 12:04 v-bbalaiagar