Skip to content

Instantly share code, notes, and snippets.

View wkoeter's full-sized avatar
🐰
doing stuff

wkoeter

🐰
doing stuff
View GitHub Profile
@wkoeter
wkoeter / CustomCosmosExtension.cs
Last active May 30, 2024 15:46
CosmosDB with Managed Identity
using Microsoft.EntityFrameworkCore.Cosmos.Infrastructure.Internal;
namespace CosmosTest.Extensions;
public class CustomCosmosExtension : CosmosOptionsExtension
{
public string ManagedIdentityClientId { get; private set; } = string.Empty;
public override void ApplyServices(IServiceCollection services)
{
// This is the first reason this class is created.