Create and manage access tokens

For full instructions on how to build this code sample from scratch, look at Quickstart: Create and manage access tokens

Prerequisites

Code Structure

  • ./AccessTokensQuickstart/Program.cs: Core application code with chat operations implementation.
  • ./AccessTokensQuickstart/AccessTokensQuickstart.csproj: Project configuration file.

Before running sample code

  1. Open an instance of PowerShell, Windows Terminal, Command Prompt or equivalent and navigate to the directory that you'd like to clone the sample to.
  2. git clone https://github.com/Azure-Samples/Communication-Services-dotnet-quickstarts.git
  3. With the Communication Services procured in pre-requisites, add connection string to environment variable using below command

setx COMMUNICATION_SERVICES_CONNECTION_STRING <CONNECTION_STRING>

Run Locally

  1. Open AccessTokensQuickstart.csproj
  2. Run the AccessTokensQuickstart project