NodeServicesServiceCollectionExtensions.AddNodeServices Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddNodeServices(IServiceCollection) |
Obsolete.
Adds NodeServices support to the |
AddNodeServices(IServiceCollection, Action<NodeServicesOptions>) |
Obsolete.
Adds NodeServices support to the |
AddNodeServices(IServiceCollection)
Caution
Use Microsoft.AspNetCore.SpaServices.Extensions
Adds NodeServices support to the 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)
Parameters
- serviceCollection
- IServiceCollection
The IServiceCollection.
- Attributes
Applies to
AddNodeServices(IServiceCollection, Action<NodeServicesOptions>)
Caution
Use Microsoft.AspNetCore.SpaServices.Extensions
Adds NodeServices support to the 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))
Parameters
- serviceCollection
- IServiceCollection
The IServiceCollection.
- setupAction
- Action<NodeServicesOptions>
A callback that will be invoked to populate the NodeServicesOptions.
- Attributes