Share via


NodeServicesServiceCollectionExtensions.AddNodeServices Method

Definition

Overloads

AddNodeServices(IServiceCollection)
Obsolete.

Adds NodeServices support to the serviceCollection.

AddNodeServices(IServiceCollection, Action<NodeServicesOptions>)
Obsolete.

Adds NodeServices support to the serviceCollection.

AddNodeServices(IServiceCollection)

Source:
NodeServicesServiceCollectionExtensions.cs
Source:
NodeServicesServiceCollectionExtensions.cs
Source:
NodeServicesServiceCollectionExtensions.cs
Source:
NodeServicesServiceCollectionExtensions.cs

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>)

Source:
NodeServicesServiceCollectionExtensions.cs
Source:
NodeServicesServiceCollectionExtensions.cs
Source:
NodeServicesServiceCollectionExtensions.cs
Source:
NodeServicesServiceCollectionExtensions.cs

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

Applies to