ImageSourceServiceCollectionExtensions 类

定义

public ref class ImageSourceServiceCollectionExtensions abstract sealed
public static class ImageSourceServiceCollectionExtensions
type ImageSourceServiceCollectionExtensions = class
Public Module ImageSourceServiceCollectionExtensions
继承
ImageSourceServiceCollectionExtensions

方法

AddService<TImageSource,TImageSourceService>(IImageSourceServiceCollection)

通过 AddSingleton 将映像服务注册到基础服务容器。

AddService<TImageSource>(IImageSourceServiceCollection, Func<IServiceProvider,IImageSourceService<TImageSource>>)

通过 AddSingleton 将映像服务注册到基础服务容器。

适用于