Skip to content

Allow GraphServiceClient to be set #142

@KennethScott

Description

@KennethScott

Have you ever considered allowing the GraphServiceClient to be passed in, as opposed to instantiating it automatically in the constructor of GraphSender? I already use Graph for other things via an IConfidentialClientApplication to manage the auth token for the GraphServiceClient, so I basically keep an authenticated client ready to go as needed. It'd be nice to just add the extra scope and reference it instead of having a separate client spun up. Then I also wouldn't have references to the tenantid/clientid/clientsecret in two places. Maybe allow it to be passed in, but still default it or something? Just curious as to your thoughts. Thanks-

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions