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.1.0.0+c05bd17c9aeef16f18715dc523820c84b7d5372d
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());