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 static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
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.
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);
Namespace: SunnyCars.Schema.Osi.WsReservation.V4
Assembly: Sunnycars.Schema.Osi.WsReservation.V4 (in Sunnycars.Schema.Osi.WsReservation.V4.dll)
Operation Members | SunnyCars.Schema.Osi.WsReservation.V4 Namespace | OperationTarget