Skip to content

[Docs] Best practices for instantiating ExchangeService? (DI Lifetime) #62

@Meligy

Description

@Meligy

Hello,
For the ExchangeService class, are you supposed to create a new instance whenever you need it, or should you try to reuse the same instance whenever possible?

For example, if you are registering it in Microsoft DI, should be singleton/scoped, or should it be transient?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions