MiddleTierSecurityEvents.CustomCreateObjectSpaceProvider Property
Allows you to create a custom Object Space provider.
Namespace: DevExpress.ExpressApp.ApplicationBuilder
Assembly: DevExpress.ExpressApp.Security.Xpo.v25.1.dll
NuGet Package: DevExpress.ExpressApp.Security.Xpo
Declaration
public Func<CustomCreateObjectSpaceProviderContext, IObjectSpaceProvider> CustomCreateObjectSpaceProvider { get; set; }
Property Value
Type | Description |
---|---|
Func<CustomCreateObjectSpaceProviderContext, IObjectSpaceProvider> | A delegate that accepts an instance of CustomCreateObjectSpaceProviderContext and must return the custom Object Space provider. |
Remarks
You can use this property to create a custom Object Space provider in WinForms applications that use Middle Tier Security.
builder.Security
.UseMiddleTierMode(options => {
options.BaseAddress = new Uri("http://localhost:5000/");
options.WaitForMiddleTierServerReady();
options.Events.OnHttpClientCreated = /* ... */
options.Events.OnCustomAuthenticate = /* ... */
// ...
options.Events.CustomCreateObjectSpaceProvider = (context) => {
return new MyCustomMiddleTierObjectSpaceProvider(context.ServiceProvider, ...);
};
})
See Also