Table of Contents

Class ServiceCollectionExtensions

Namespace
Tudormobile.Strava.Client
Assembly
Tudormobile.Strava.Client.dll

Provides extension methods for registering Strava client services with an IServiceCollection.

public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions
Inherited Members

Remarks

Use these extension methods to add and configure Strava API clients in ASP.NET Core dependency injection containers. This enables applications to access athletic and fitness data from Strava using strongly-typed services.

Methods

AddStravaClient(IServiceCollection, Action<IStravaClientBuilder>)

Adds Strava client services to the specified IServiceCollection.

public static IServiceCollection AddStravaClient(this IServiceCollection services, Action<IStravaClientBuilder> configure)

Parameters

services IServiceCollection

The IServiceCollection to add services to.

configure Action<IStravaClientBuilder>

The action used to configure the IStravaClientBuilder.

Returns

IServiceCollection

The IServiceCollection so that additional calls can be chained.