Class PnPContextFactoryCollectionExtensions
Extension class for the IServiceCollection type to provide supporting methods for the PnPContextFactory service
Inheritance
System.Object
PnPContextFactoryCollectionExtensions
Namespace: PnP.Core.Services
Assembly: PnP.Core.dll
Syntax
public static class PnPContextFactoryCollectionExtensions : object
Methods
AddPnPContextFactory(IServiceCollection)
Adds the PnPContextFactory to the collection of services
Declaration
public static IServiceCollection AddPnPContextFactory(this IServiceCollection collection)
Parameters
IServiceCollection
collection
Collection of loaded services |
Returns
IServiceCollection
Collection of loaded services |
AddPnPContextFactory(IServiceCollection, Action<PnPContextFactoryOptions>)
Adds the PnPContextFactory to the collection of services with options
Declaration
public static IServiceCollection AddPnPContextFactory(this IServiceCollection collection, Action<PnPContextFactoryOptions> options)
Parameters
IServiceCollection
collection
Collection of loaded services |
Action<PnPContextFactoryOptions>
options
PnPContextFactory configuration options |
Returns
IServiceCollection
Collection of loaded services |