HostExtensionsAddAntPlusServices Method
Adds AntPlus services to the specified service collection.
Namespace: SmallEarthTech.AntPlus.Extensions.HostingAssembly: SmallEarthTech.AntPlus.Extensions.Hosting (in SmallEarthTech.AntPlus.Extensions.Hosting.dll) Version: 1.2.1+506fd73c3b72ad19a414fa5c6d86694cac54d86e
public static IServiceCollection AddAntPlusServices(
this IServiceCollection services
)
<ExtensionAttribute>
Public Shared Function AddAntPlusServices (
services As IServiceCollection
) As IServiceCollection
public:
[ExtensionAttribute]
static IServiceCollection^ AddAntPlusServices(
IServiceCollection^ services
)
[<ExtensionAttribute>]
static member AddAntPlusServices :
services : IServiceCollection -> IServiceCollection
- services IServiceCollection
- The service collection.
IServiceCollectionThe service collection with added services.In Visual Basic and C#, you can call this method as an instance method on any object of type
IServiceCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Use this method to add AntPlus services to the service collection when UseAntPlus() is not
suitable, for example, when using a custom host builder.
builder.ConfigureServices((context, services) => services.AddAntPlusServices());