Do not create backing stores internally for a claim or credential storage. Instead have the caller pass in the backing store so that the caller can control the lifetime and connection properties, such as AutoConnect, themselves.
For example, in porter this let's us use the same instance of a backing store independently and with a claim store, while keeping the connection open during the migration of the claims directory to match the new claims spec.
Do not create backing stores internally for a claim or credential storage. Instead have the caller pass in the backing store so that the caller can control the lifetime and connection properties, such as AutoConnect, themselves.
For example, in porter this let's us use the same instance of a backing store independently and with a claim store, while keeping the connection open during the migration of the claims directory to match the new claims spec.