Aydsko iRacing Data API
Show / Hide Table of Contents

Class ServicesExtensions

Inheritance
object
ServicesExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Aydsko.iRacingData
Assembly: Aydsko.iRacingData.dll
Syntax
public static class ServicesExtensions

Methods

AddIRacingDataApi(IServiceCollection)

Add required types for iRacing Data API to the service collection.

Declaration
public static IHttpClientBuilder AddIRacingDataApi(this IServiceCollection services)
Parameters
Type Name Description
IServiceCollection services

The service collection to configure.

Returns
Type Description
IHttpClientBuilder

The http client builder for further configuration.

Exceptions
Type Condition
ArgumentNullException

One of the arguments is null.

AddIRacingDataApi(IServiceCollection, Action<iRacingDataClientOptions>)

Add required types for iRacing Data API to the service collection.

Declaration
public static IHttpClientBuilder AddIRacingDataApi(this IServiceCollection services, Action<iRacingDataClientOptions> configureOptions)
Parameters
Type Name Description
IServiceCollection services

The service collection to configure.

Action<iRacingDataClientOptions> configureOptions

Action to configure the options for the API client.

Returns
Type Description
IHttpClientBuilder

The http client builder for further configuration.

Exceptions
Type Condition
ArgumentNullException

One of the arguments is null.

AddIRacingDataApiWithCaching(IServiceCollection)

Add required types for iRacing Data API with caching enabled to the service collection.

Declaration
public static IHttpClientBuilder AddIRacingDataApiWithCaching(this IServiceCollection services)
Parameters
Type Name Description
IServiceCollection services

The service collection to configure.

Returns
Type Description
IHttpClientBuilder

The http client builder for further configuration.

Exceptions
Type Condition
ArgumentNullException

One of the arguments is null.

AddIRacingDataApiWithCaching(IServiceCollection, Action<iRacingDataClientOptions>)

Add required types for iRacing Data API with caching enabled to the service collection.

Declaration
public static IHttpClientBuilder AddIRacingDataApiWithCaching(this IServiceCollection services, Action<iRacingDataClientOptions> configureOptions)
Parameters
Type Name Description
IServiceCollection services

The service collection to configure.

Action<iRacingDataClientOptions> configureOptions

Action to configure the options for the API client.

Returns
Type Description
IHttpClientBuilder

The http client builder for further configuration.

Exceptions
Type Condition
ArgumentNullException

One of the arguments is null.

In this article
Back to top Generated by DocFX