StartupExtensions.AddXafOffice(IServiceCollection) Method
Registers the required Office Module services in the application’s IServiceCollection.
Namespace: DevExpress.ExpressApp.Office.Blazor
Assembly: DevExpress.ExpressApp.Office.Blazor.v24.2.dll
NuGet Package: DevExpress.ExpressApp.Office.Blazor
Declaration
Parameters
Name | Type | Description |
---|---|---|
services | IServiceCollection | The collection of services registered in your application. |
Returns
Type | Description |
---|---|
IServiceCollection | The collection of services registered in your application. Allows you to chain further service registrations. |
Remarks
Call this method in the Startup.ConfigureServices method when you add the Office Module to your ASP.NET Core Blazor application:
File: MySolution.Blazor.Server\Startup.cs.
using DevExpress.ExpressApp.Office.Blazor;
// ...
public class Startup {
// ...
public void ConfigureServices(IServiceCollection services){
//...
services.AddXafOffice();
}
// ...
}
See Also