Created
May 4, 2025 16:47
-
-
Save geiltonxavier/89b5756410645904aafeec059cf82693 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var azureServiceTokenProvider = new AzureServiceTokenProvider(); | |
string accessToken = await azureServiceTokenProvider.GetAccessTokenAsync("https://servicebus.azure.net/"); | |
var client = new ServiceBusClient("<ServiceBusNamespace>", new DefaultAzureCredential()); | |
var sender = client.CreateSender("<QueueName>"); | |
await sender.SendMessageAsync(new ServiceBusMessage("Hello from Dynamics 365!")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment