Skip to main content

PooledClientExtensions

  • Namespace: PPDS.Dataverse.Pooling
  • Assembly: PPDS.Dataverse
  • Kind: Class

Summary

Extension methods on PPDS.Dataverse.Pooling.IPooledClient for common Dataverse SDK operations that wrap Microsoft.Xrm.Sdk.OrganizationRequest/Microsoft.Xrm.Sdk.OrganizationResponse pairs into strongly-typed async helpers.

Members

Methods

PublishAllXmlAsync

Task PublishAllXmlAsync(IPooledClient client, string environmentKey, CancellationToken cancellationToken)

Publishes all customizations in the environment.

  • Param client: The pooled client to execute the request on.

  • Param environmentKey: A stable key identifying the target environment (e.g., environment URL or org unique name). Used to scope the publish lock so different environments can publish concurrently.

  • Param cancellationToken: Cancellation token.

PublishXmlAsync

Task PublishXmlAsync(IPooledClient client, string parameterXml, string environmentKey, CancellationToken cancellationToken)

Publishes specific customizations using a PublishXml request.

  • Param client: The pooled client to execute the request on.

  • Param parameterXml: The XML describing which customizations to publish. For example: <importexportxml><webresources><webresource>{id}</webresource></webresources></importexportxml>

  • Param environmentKey: A stable key identifying the target environment (e.g., environment URL or org unique name). Used to scope the publish lock so different environments can publish concurrently.

  • Param cancellationToken: Cancellation token.

RetrieveUnpublishedAsync

Task<Entity> RetrieveUnpublishedAsync(IPooledClient client, string entityLogicalName, Guid id, ColumnSet columnSet, CancellationToken cancellationToken)

Retrieves an unpublished record from Dataverse.

  • Param client: The pooled client to execute the request on.

  • Param entityLogicalName: The logical name of the entity to retrieve.

  • Param id: The unique identifier of the record.

  • Param columnSet: The columns to retrieve.

  • Param cancellationToken: Cancellation token.

  • Returns: The unpublished entity record.