Documentation of the CarRentalAgentService

Operation Class

The Operation class contains information about the current operational scope for a specific Request/Response-pair of a single operation.

For a list of all members of this type, see Operation Members.

System.Object
   Data
      Operation

public class Operation : Data

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The CarRentalAgentService interface supports transport of operational meta-data for each Request. Using this class, you can change the target of operation, whereby you have the choice between Production and Test.

This way, you can ensure that you call the correct service implementation. That means actually which database is used to handle the Request.

Example

If you want to have a CarRentalAgentService method operate on testing environment, because you are about to implement a client, you can easily set the Target attribute of the Operation instance to inform the service provider about your intent.

[C#]
RegionsRequest rq = new RegionsRequest();
rq.Operation.Target = OperationTarget.Test;
rq.Ticket = this.serviceTicket;

RegionsResponse rs = this.service.GetRegions(rq);

Requirements

Namespace: SunnyCars.Schema.Osi.WsReservation.V4

Assembly: Sunnycars.Schema.Osi.WsReservation.V4 (in Sunnycars.Schema.Osi.WsReservation.V4.dll)

See Also

Operation Members | SunnyCars.Schema.Osi.WsReservation.V4 Namespace | OperationTarget