This example assumes using Weave; is in scope and apiKey contains your Weave API key.
12345678
varapiKey=Environment.GetEnvironmentVariable("WANDB_API_KEY")is{Length:>0}value?value:thrownewAssertInconclusiveException("WANDB_API_KEY environment variable is not found.");usingvarclient=newWeaveClient(apiKey);// The client provides access to all Weave API endpoints.