CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Channels.Grpc.GrpcPortal Class Reference

Exposes server-side DataPortal functionality through gRPC. More...

Inheritance diagram for Csla.Channels.Grpc.GrpcPortal:

Public Member Functions

 GrpcPortal (IDataPortalServer dataPortal, ApplicationContext applicationContext)
 Creates an instance of the type More...
 
override async Task< ResponseMessage > Invoke (RequestMessage request, ServerCallContext context)
 Handle inbound message. More...
 
async Task< DataPortalResponseCreate (CriteriaRequest request)
 Create and initialize an existing business object. More...
 
async Task< DataPortalResponseFetch (CriteriaRequest request)
 Get an existing business object. More...
 
async Task< DataPortalResponseUpdate (UpdateRequest request)
 Update a business object. More...
 
async Task< DataPortalResponseDelete (CriteriaRequest request)
 Delete a business object. More...
 

Protected Member Functions

virtual async Task< ResponseMessage > RouteMessage (string operation, string routingTag, RequestMessage request)
 Entry point for routing tag based data portal operations. More...
 
virtual UpdateRequest ConvertRequest (UpdateRequest request)
 Override to convert the request data before it is transferred over the network. More...
 
virtual CriteriaRequest ConvertRequest (CriteriaRequest request)
 Override to convert the request data before it is transferred over the network. More...
 
virtual DataPortalResponse ConvertResponse (DataPortalResponse response)
 Override to convert the response data after it comes back from the network. More...
 

Static Protected Attributes

static Dictionary< string, string > RoutingTagUrls = new Dictionary<string, string>()
 Gets a dictionary containing the URLs for each data portal route, where each key is the routing tag identifying the route URL. More...
 

Detailed Description

Exposes server-side DataPortal functionality through gRPC.

Definition at line 28 of file GrpcPortal.cs.

Constructor & Destructor Documentation

◆ GrpcPortal()

Csla.Channels.Grpc.GrpcPortal.GrpcPortal ( IDataPortalServer  dataPortal,
ApplicationContext  applicationContext 
)

Creates an instance of the type

Parameters
dataPortalData portal server service
applicationContext

Definition at line 38 of file GrpcPortal.cs.

Member Function Documentation

◆ ConvertRequest() [1/2]

virtual CriteriaRequest Csla.Channels.Grpc.GrpcPortal.ConvertRequest ( CriteriaRequest  request)
protectedvirtual

Override to convert the request data before it is transferred over the network.

Parameters
requestRequest object.

Definition at line 345 of file GrpcPortal.cs.

◆ ConvertRequest() [2/2]

virtual UpdateRequest Csla.Channels.Grpc.GrpcPortal.ConvertRequest ( UpdateRequest  request)
protectedvirtual

Override to convert the request data before it is transferred over the network.

Parameters
requestRequest object.

Definition at line 335 of file GrpcPortal.cs.

◆ ConvertResponse()

virtual DataPortalResponse Csla.Channels.Grpc.GrpcPortal.ConvertResponse ( DataPortalResponse  response)
protectedvirtual

Override to convert the response data after it comes back from the network.

Parameters
responseResponse object.

Definition at line 355 of file GrpcPortal.cs.

◆ Create()

async Task< DataPortalResponse > Csla.Channels.Grpc.GrpcPortal.Create ( CriteriaRequest  request)

Create and initialize an existing business object.

Parameters
requestThe request parameter object.

Definition at line 149 of file GrpcPortal.cs.

◆ Delete()

async Task< DataPortalResponse > Csla.Channels.Grpc.GrpcPortal.Delete ( CriteriaRequest  request)

Delete a business object.

Parameters
requestThe request parameter object.

Definition at line 276 of file GrpcPortal.cs.

◆ Fetch()

async Task< DataPortalResponse > Csla.Channels.Grpc.GrpcPortal.Fetch ( CriteriaRequest  request)

Get an existing business object.

Parameters
requestThe request parameter object.

Definition at line 193 of file GrpcPortal.cs.

◆ Invoke()

override async Task< ResponseMessage > Csla.Channels.Grpc.GrpcPortal.Invoke ( RequestMessage  request,
ServerCallContext  context 
)

Handle inbound message.

Parameters
requestRequest message
contextServer call context
Returns

Definition at line 50 of file GrpcPortal.cs.

◆ RouteMessage()

virtual async Task< ResponseMessage > Csla.Channels.Grpc.GrpcPortal.RouteMessage ( string  operation,
string  routingTag,
RequestMessage  request 
)
protectedvirtual

Entry point for routing tag based data portal operations.

Parameters
operationName of the data portal operation to perform
routingTagRouting tag from caller
requestRequest message

Definition at line 77 of file GrpcPortal.cs.

◆ Update()

async Task< DataPortalResponse > Csla.Channels.Grpc.GrpcPortal.Update ( UpdateRequest  request)

Update a business object.

Parameters
requestThe request parameter object.

Definition at line 237 of file GrpcPortal.cs.

Member Data Documentation

◆ RoutingTagUrls

Dictionary<string, string> Csla.Channels.Grpc.GrpcPortal.RoutingTagUrls = new Dictionary<string, string>()
staticprotected

Gets a dictionary containing the URLs for each data portal route, where each key is the routing tag identifying the route URL.

Definition at line 69 of file GrpcPortal.cs.