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: 2.0.0+c7a96f474ca7ff8aa6ed4e4d3eea61b53199a42c
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());