Skip to content

AccessManagementExtensions

Class Reference

Provides a class to register SDK implementations with an IServiceCollection.

  • Namespace: TrimbleCloud.Tam
  • Assembly: TrimbleCloud.Tam.dll
public static class AccessManagementExtensions

This is a static class and provides extension methods for an IServiceCollection.

Registers SDK classes with the IServiceCollection.

public static void AddAccessManagement(this IServiceCollection services, Environment environment, string consumerKey, string consumerSecret, string applianceUrl);

services IServiceCollection The service collection into which interfaces and classes are injected.

environment Environment Trimble Access Management envrionment that the SDK will target.

consumerKey string The Trimble Cloud Console Client ID for your application.

consumerSecret string The Trimble Cloud Console Client Secret for your application.

applianceUrl string The appliance running in your environment (if needed) to evaluate decisions.

var builder = Host.CreateApplicationBuilder(args);
builder.Services.AddAccessManagement(environment, consumerKey, consumerSecret, applianceUrl);
using var host = builder.Build();