Skip to content

Guidance around useUniqueInstance ServiceClient Constructor Parameter  #265

@fowl2

Description

@fowl2

What is the intended use of the useUniqueInstance constructor parameter?

I've been getting some strange permission errors that indicate that perhaps the CallerID property isn't being cleared between instances with this set to true. (It's also possible it's a bug in my code, but I think it's ok).

I'm trying to avoid the startup delay of the "whoami" call each time (is that really required?), but definitely need separate environments and users to be separate.

Some background: My use case is running as close to unmodified as possible plugin code in an Azure Function, so I've created an implementation of IOrganizationServiceFactory that creates a ServiceClient each call. The plugin code calls CreateOrganizationService quite a lot so performance is important.

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