EFCoreMiddleTierSecurityEvents.OnClientWebSocketCreated Property
Specifies the delegate that configures a ClientWebSocket that your WinForms application uses to interact with the Middle Tier Security server.
Namespace: DevExpress.ExpressApp.ApplicationBuilder
Assembly: DevExpress.EntityFrameworkCore.Security.v25.1.dll
NuGet Package: DevExpress.ExpressApp.EFCore
Declaration
Property Value
Type | Description |
---|---|
Action<ClientWebSocket> | The delegate that configures a ClientWebSocket that your WinForms application uses to interact with the Middle Tier Security server. |
Remarks
The following code snippet accesses this property:
File: MySolution.Win\Startup.cs.
using DevExpress.ExpressApp.ApplicationBuilder;
// ...
public class ApplicationBuilder : IDesignTimeApplicationFactory {
public static WinApplication BuildApplication(string connectionString) {
var builder = WinApplication.CreateBuilder();
builder.UseApplication<MySolutionWindowsFormsApplication>();
// ...
builder.Security
.UseMiddleTierMode(options => {
options.Events.OnClientWebSocketCreated = (client) => {
//...
}
})
.UsePasswordAuthentication();
// ...
}
// ...
}
See Also