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 Pn
Declaration
public static IServiceCollection AddPnPContextFactory(this IServiceCollection collection)
Parameters
IService Collection of loaded services |
Returns
IService Collection of loaded services |
AddPnPContextFactory(IServiceCollection, Action<PnPContextFactoryOptions>)
Adds the Pn
Declaration
public static IServiceCollection AddPnPContextFactory(this IServiceCollection collection, Action<PnPContextFactoryOptions> options)
Parameters
IService Collection of loaded services |
Action<Pn Pn |
Returns
IService Collection of loaded services |