Skip to main content
.NET 6.0+

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ServerApplication Class

Manages an XAF Application Server.

Namespace: DevExpress.ExpressApp.MiddleTier

Assembly: DevExpress.ExpressApp.Xpo.v24.1.dll

NuGet Package: DevExpress.ExpressApp.Xpo

#Declaration

public class ServerApplication :
    XafApplication

#Remarks

The ServerApplication class is a descendant of the XafApplication class. In the project created via the Application Server Project template of the DevExpress v24.1 XAF Template Gallery with the Console Application as a Middle Tier Server Type, this class is instantiated in the Main method (see Program.cs or Program.vb file). In the project created with the Windows Service as a Middle Tier Server Type, this class is instantiated in the OnStart method (see ApplicationServerService.cs or ApplicationServerService.vb file). The ServerApplication required configuration includes:

  • Specifying the XafApplication.ApplicationName property value. The name must be the same as the one specified in the client application configuration. It is required to ensure that the client connects to the correct server.
  • Populating the XafApplication.Modules collection. Server and client module lists must be synchronized.
  • Specifying the XafApplication.ConnectionString property value used by server to connect to the application’s database.

The Middle Tier Security topic provides an example.

#Extension Methods

See Also