CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.Configuration.DataPortalServerOptions Class Reference

Server-side data portal options. More...

Public Member Functions

 DataPortalServerOptions (IServiceCollection services)
 Initializes a new instance of the DataPortalServerOptions class.
DataPortalServerOptions RegisterDashboard<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T > ()
 Sets the type of the IDashboard to be used by the data portal.
DataPortalServerOptions RegisterAuthorizerProvider<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T > ()
 Sets the type of the IDataPortalAuthorizer to be used by the data portal.
DataPortalServerOptions AddInterceptorProvider< T > ()
 Adds the type of an IInterceptDataPortal that will be executed by the server-side data portal.
DataPortalServerOptions AddInterceptorProvider< T > (int index)
 Adds the type of an IInterceptDataPortal that will be executed by the server-side data portal.
DataPortalServerOptions RemoveInterceptorProvider (int index)
 Removes a type of an IInterceptDataPortal.
DataPortalServerOptions RegisterExceptionInspector<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T > ()
 Sets the type of the ExceptionInspector.
DataPortalServerOptions RegisterActivator<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T > ()
 Sets the type of the Activator.
DataPortalServerOptions RegisterObjectFactoryLoader<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T > ()
 Gets or sets the type name of the factor loader used to create server-side instances of business object factories when using the FactoryDataPortal model. Type must implement IObjectFactoryLoader.

Properties

IServiceCollection Services [get]
 Gets the service collection.
bool DataPortalReturnObjectOnException = false [get, set]
 Gets or sets a value indicating whether the server-side business object should be returned to the client as part of the DataPortalException (default is false).

Detailed Description

Server-side data portal options.

Constructor & Destructor Documentation

◆ DataPortalServerOptions()

Csla.Configuration.DataPortalServerOptions.DataPortalServerOptions ( IServiceCollection services)
inline

Initializes a new instance of the DataPortalServerOptions class.

Parameters
servicesService collection.
Exceptions
ArgumentNullExceptionservices is null.

Member Function Documentation

◆ AddInterceptorProvider< T >() [1/2]

DataPortalServerOptions Csla.Configuration.DataPortalServerOptions.AddInterceptorProvider< T > ( )
inline

Adds the type of an IInterceptDataPortal that will be executed by the server-side data portal.

Type Constraints
T :IInterceptDataPortal 

◆ AddInterceptorProvider< T >() [2/2]

DataPortalServerOptions Csla.Configuration.DataPortalServerOptions.AddInterceptorProvider< T > ( int index)
inline

Adds the type of an IInterceptDataPortal that will be executed by the server-side data portal.

Parameters
indexIndex at which new item should be added.
Type Constraints
T :IInterceptDataPortal 

◆ RegisterActivator<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T >()

DataPortalServerOptions Csla.Configuration.DataPortalServerOptions.RegisterActivator<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T > ( )
inline

Sets the type of the Activator.

Template Parameters
T
Type Constraints
T :IDataPortalActivator 

◆ RegisterAuthorizerProvider<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T >()

DataPortalServerOptions Csla.Configuration.DataPortalServerOptions.RegisterAuthorizerProvider<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T > ( )
inline

Sets the type of the IDataPortalAuthorizer to be used by the data portal.

Template Parameters
T
Type Constraints
T :IAuthorizeDataPortal 

◆ RegisterDashboard<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T >()

DataPortalServerOptions Csla.Configuration.DataPortalServerOptions.RegisterDashboard<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T > ( )
inline

Sets the type of the IDashboard to be used by the data portal.

Template Parameters
T
Type Constraints
T :Server.Dashboard.IDashboard 

◆ RegisterExceptionInspector<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T >()

DataPortalServerOptions Csla.Configuration.DataPortalServerOptions.RegisterExceptionInspector<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T > ( )
inline

Sets the type of the ExceptionInspector.

Template Parameters
T
Type Constraints
T :IDataPortalExceptionInspector 

◆ RegisterObjectFactoryLoader<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T >()

DataPortalServerOptions Csla.Configuration.DataPortalServerOptions.RegisterObjectFactoryLoader<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T > ( )
inline

Gets or sets the type name of the factor loader used to create server-side instances of business object factories when using the FactoryDataPortal model. Type must implement IObjectFactoryLoader.

Template Parameters
T
Type Constraints
T :IObjectFactoryLoader 

◆ RemoveInterceptorProvider()

DataPortalServerOptions Csla.Configuration.DataPortalServerOptions.RemoveInterceptorProvider ( int index)
inline

Removes a type of an IInterceptDataPortal.

Parameters
indexIndex from which item will be removed.

Property Documentation

◆ DataPortalReturnObjectOnException

bool Csla.Configuration.DataPortalServerOptions.DataPortalReturnObjectOnException = false
getset

Gets or sets a value indicating whether the server-side business object should be returned to the client as part of the DataPortalException (default is false).

◆ Services

IServiceCollection Csla.Configuration.DataPortalServerOptions.Services
get

Gets the service collection.


The documentation for this class was generated from the following file: