NodeServicesServiceCollectionExtensions.AddNodeServices Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
AddNodeServices(IServiceCollection) |
Obsolète.
Ajoute la prise en charge de NodeServices à . |
AddNodeServices(IServiceCollection, Action<NodeServicesOptions>) |
Obsolète.
Ajoute la prise en charge de NodeServices à . |
AddNodeServices(IServiceCollection)
Attention
Use Microsoft.AspNetCore.SpaServices.Extensions
Ajoute la prise en charge de NodeServices à .serviceCollection
public static void AddNodeServices (this Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection);
[System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")]
public static void AddNodeServices (this Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection);
static member AddNodeServices : Microsoft.Extensions.DependencyInjection.IServiceCollection -> unit
[<System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")>]
static member AddNodeServices : Microsoft.Extensions.DependencyInjection.IServiceCollection -> unit
<Extension()>
Public Sub AddNodeServices (serviceCollection As IServiceCollection)
Paramètres
- serviceCollection
- IServiceCollection
L’IServiceCollectionopérateur
- Attributs
S’applique à
AddNodeServices(IServiceCollection, Action<NodeServicesOptions>)
Attention
Use Microsoft.AspNetCore.SpaServices.Extensions
Ajoute la prise en charge de NodeServices à .serviceCollection
public static void AddNodeServices (this Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, Action<Microsoft.AspNetCore.NodeServices.NodeServicesOptions> setupAction);
[System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")]
public static void AddNodeServices (this Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, Action<Microsoft.AspNetCore.NodeServices.NodeServicesOptions> setupAction);
static member AddNodeServices : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.NodeServices.NodeServicesOptions> -> unit
[<System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")>]
static member AddNodeServices : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.NodeServices.NodeServicesOptions> -> unit
<Extension()>
Public Sub AddNodeServices (serviceCollection As IServiceCollection, setupAction As Action(Of NodeServicesOptions))
Paramètres
- serviceCollection
- IServiceCollection
L’IServiceCollectionopérateur
- setupAction
- Action<NodeServicesOptions>
Rappel qui sera appelé pour remplir le NodeServicesOptions.
- Attributs