Show / Hide Table of Contents

Class IServiceCollectionDerivedTypesExtension

Derived type extension methods for IServiceCollection.

Inheritance
object
IServiceCollectionDerivedTypesExtension
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Core.dll
Syntax
public static class IServiceCollectionDerivedTypesExtension

Methods

View Source

AddDerivedTypesAsTransient<T>(IServiceCollection, Assembly?, bool)

Adds derived types to a service collection.

Declaration
public static IServiceCollection AddDerivedTypesAsTransient<T>(this IServiceCollection services, Assembly? assembly = null, bool includeGenericTypes = false)
Parameters
Type Name Description
IServiceCollection services

The service collection.

Assembly assembly

The assembly to search within.

bool includeGenericTypes

Whether or not to register open generic type definitions.

Returns
Type Description
IServiceCollection

A service collection with derived types.

Type Parameters
Name Description
T

The type reference for derived types.

  • View Source
In this article
Back to top Generated by DocFX