NodeServicesServiceCollectionExtensions.AddNodeServices NodeServicesServiceCollectionExtensions.AddNodeServices NodeServicesServiceCollectionExtensions.AddNodeServices NodeServicesServiceCollectionExtensions.AddNodeServices Method

Definition

Overloads

AddNodeServices(IServiceCollection) AddNodeServices(IServiceCollection) AddNodeServices(IServiceCollection) AddNodeServices(IServiceCollection)

Adds NodeServices support to the serviceCollection.

AddNodeServices(IServiceCollection, Action<NodeServicesOptions>) AddNodeServices(IServiceCollection, Action<NodeServicesOptions>) AddNodeServices(IServiceCollection, Action<NodeServicesOptions>) AddNodeServices(IServiceCollection, Action<NodeServicesOptions>)

Adds NodeServices support to the serviceCollection.

AddNodeServices(IServiceCollection) AddNodeServices(IServiceCollection) AddNodeServices(IServiceCollection) AddNodeServices(IServiceCollection)

Warning

This API is now obsolete.

Adds NodeServices support to the serviceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static void AddNodeServices(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
<Extension()>
Public Sub AddNodeServices (serviceCollection As IServiceCollection)

Parameters

serviceCollection
Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection.

AddNodeServices(IServiceCollection, Action<NodeServicesOptions>) AddNodeServices(IServiceCollection, Action<NodeServicesOptions>) AddNodeServices(IServiceCollection, Action<NodeServicesOptions>) AddNodeServices(IServiceCollection, Action<NodeServicesOptions>)

Warning

This API is now obsolete.

Adds NodeServices support to the serviceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static void AddNodeServices(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
<Extension()>
Public Sub AddNodeServices (serviceCollection As IServiceCollection, setupAction As Action(Of NodeServicesOptions))

Parameters

serviceCollection
Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Extensions.DependencyInjection.IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection.

setupAction
Action<NodeServicesOptions>

A callback that will be invoked to populate the NodeServicesOptions.

Applies to