By looking into the MS docs for dependency injection it is clear that DI will dispose of the object that is injected by DI according to their lifetime.
I'm little confused/not sure what will happen in the following case with BlobContainerClient object. Will it get disposed of with EventProcessorClient.
services.TryAddScoped<EventProcessorClient>(p =>
{
var storageClient = new BlobContainerClient("connectionString", "containerName");
var connectionParam = p.GetRequiredService<IOptions<EventHubSettings>>();
return new EventProcessorClient(storageClient, connectionParam.Value.SomeValue,
connectionParam.Value.SomeValue);
});