Class IServiceCollectionExtension
- Namespace
- FellowOakDicom
- Assembly
- fo-dicom.core.dll
public static class IServiceCollectionExtension
- Inheritance
-
IServiceCollectionExtension
- Inherited Members
Methods
AddDicomClient(IServiceCollection, Action<DicomClientOptions>)
Adds DicomClient services to the specified IServiceCollection.
public static IServiceCollection AddDicomClient(this IServiceCollection services, Action<DicomClientOptions> options = null)
Parameters
services
IServiceCollectionThe IServiceCollection to add services to.
options
Action<DicomClientOptions>The DicomClientOptions configuration delegate.
Returns
- IServiceCollection
The IServiceCollection so that additional calls can be chained.
AddDicomServer(IServiceCollection, Action<DicomServerOptions>)
Adds DicomServer services to the specified IServiceCollection.
public static IServiceCollection AddDicomServer(this IServiceCollection services, Action<DicomServerOptions> options = null)
Parameters
services
IServiceCollectionThe IServiceCollection to add services to.
options
Action<DicomServerOptions>The DicomServerOptions configuration delegate.
Returns
- IServiceCollection
The IServiceCollection so that additional calls can be chained.
AddFellowOakDicom(IServiceCollection)
Adds default implementations of all required services to the collection if the services haven't already been registered
public static IServiceCollection AddFellowOakDicom(this IServiceCollection services)
Parameters
services
IServiceCollection
Returns
AddImageManager<TImageManager>(IServiceCollection)
Adds IImageManager services to the specified IServiceCollection.
public static IServiceCollection AddImageManager<TImageManager>(this IServiceCollection services) where TImageManager : class, IImageManager
Parameters
services
IServiceCollectionThe IServiceCollection to add services to.
Returns
- IServiceCollection
The IServiceCollection so that additional calls can be chained.
Type Parameters
TImageManager
AddLogManager<TLogManager>(IServiceCollection)
[Obsolete("Fellow Oak DICOM now supports Microsoft.Extensions.Logging")]
public static IServiceCollection AddLogManager<TLogManager>(this IServiceCollection services) where TLogManager : class, ILogManager
Parameters
services
IServiceCollection
Returns
Type Parameters
TLogManager
AddNetworkManager<TNetworkManager>(IServiceCollection)
Adds INetworkManager services to the specified IServiceCollection.
public static IServiceCollection AddNetworkManager<TNetworkManager>(this IServiceCollection services) where TNetworkManager : class, INetworkManager
Parameters
services
IServiceCollectionThe IServiceCollection to add services to.
Returns
- IServiceCollection
The IServiceCollection so that additional calls can be chained.
Type Parameters
TNetworkManager
AddTranscoderManager<TTranscoderManager>(IServiceCollection)
Adds ITranscoderManager services to the specified IServiceCollection.
public static IServiceCollection AddTranscoderManager<TTranscoderManager>(this IServiceCollection services) where TTranscoderManager : class, ITranscoderManager
Parameters
services
IServiceCollectionThe IServiceCollection to add services to.
Returns
- IServiceCollection
The IServiceCollection so that additional calls can be chained.
Type Parameters
TTranscoderManager
TryAddImageManager<TImageManager>(IServiceCollection)
Adds IImageManager services to the specified IServiceCollection if they are not already registered.
public static IServiceCollection TryAddImageManager<TImageManager>(this IServiceCollection services) where TImageManager : class, IImageManager
Parameters
services
IServiceCollectionThe IServiceCollection to add services to.
Returns
- IServiceCollection
The IServiceCollection so that additional calls can be chained.
Type Parameters
TImageManager
TryAddNetworkManager<TNetworkManager>(IServiceCollection)
Adds INetworkManager services to the specified IServiceCollection if they are not already registered.
public static IServiceCollection TryAddNetworkManager<TNetworkManager>(this IServiceCollection services) where TNetworkManager : class, INetworkManager
Parameters
services
IServiceCollectionThe IServiceCollection to add services to.
Returns
- IServiceCollection
The IServiceCollection so that additional calls can be chained.
Type Parameters
TNetworkManager
TryAddTranscoderManager<TTranscoderManager>(IServiceCollection)
Adds ITranscoderManager services to the specified IServiceCollection if they are not already registered.
public static IServiceCollection TryAddTranscoderManager<TTranscoderManager>(this IServiceCollection services) where TTranscoderManager : class, ITranscoderManager
Parameters
services
IServiceCollectionThe IServiceCollection to add services to.
Returns
- IServiceCollection
The IServiceCollection so that additional calls can be chained.
Type Parameters
TTranscoderManager