Skip to main content

ConnectionStringSource

  • Namespace: PPDS.Dataverse.Pooling
  • Assembly: PPDS.Dataverse
  • Kind: Class
  • Implements: IConnectionSource, IDisposable

Summary​

Connection source that creates a ServiceClient from connection string configuration. Used for backward compatibility with existing DataverseOptions configuration.

Members​

Constructors​

ConnectionStringSource(DataverseConnection config)​

ConnectionStringSource(DataverseConnection config)

Creates a new connection source from connection configuration.

  • Param config: The connection configuration.

Methods​

Dispose​

void Dispose()

Disposes the underlying ServiceClient if it was created.

GetSeedClient​

ServiceClient GetSeedClient()

Gets the seed ServiceClient for cloning.

  • Returns: An authenticated, ready-to-use ServiceClient. The pool will clone this client to create pool members.

InvalidateSeed​

void InvalidateSeed()

Invalidates the cached seed client, forcing fresh authentication on next use.

Properties​

MaxPoolSize​

int MaxPoolSize { get; }

Gets the maximum number of pooled connections for this source.

Name​

string Name { get; }

Gets the unique name for this connection source. Used for logging, throttle tracking, and connection selection.