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.2+5af4910afb6836f6fbc09954ad2a5f59fb040191
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());