Skip to content

Added caching of the token#1

Merged
magesoe merged 1 commit into
masterfrom
memcache
Jun 5, 2025
Merged

Added caching of the token#1
magesoe merged 1 commit into
masterfrom
memcache

Conversation

@magesoe

@magesoe magesoe commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

No description provided.

…ndencyInjection packages for improved caching and dependency management
@magesoe magesoe requested a review from Copilot June 5, 2025 17:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces caching for the token used in Dataverse connections to reduce redundant token fetches.

  • Added MemoryCache registration and caching mechanism in the ServiceCollectionExtensions.cs file.
  • Updated project files to include necessary package references for caching and dependency injection.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
DataverseWhoAmI/DataverseWhoAmI.csproj Adds a package reference for dependency injection to support caching functionality.
DataverseConnection/ServiceCollectionExtensions.cs Introduces caching of tokens using MemoryCache with defined expiration logic.
DataverseConnection/DataverseConnection.csproj Adds package references for caching and dependency injection to enable the caching mechanism.

@magesoe magesoe merged commit ed998e2 into master Jun 5, 2025
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants