Exception-less pre-construction of ServiceInterfaceProxy.
Syntax
ConstructionResult Preconstruct(HandleType const& handle)
Parameters
in | handle | The identification of the service the proxy should represent. Handles are generated by synchronous FindService() or asynchronous StartFindService(). |
Returns
ConstructionToken
Result containing construction token from which a proxy object can be constructed.
Precondition
- Runtime must be initialized.
- The
InstanceIdentifier
of the handle must be known. - The proxy backend must be spawned.
- The provided handle must match the handle of the service.
Thread-safety, Reentrance, Result Delivery
- Threadsafe : FALSE
- Reentrant : FALSE
- Synchronous : TRUE
Example
ExampleServiceProxy::ConstructionResult ExampleServiceProxy::Preconstruct(
ExampleServiceProxy::HandleType const& handle) noexcept {
return Base::Preconstruct(handle.GetRequiredInstanceId(), handle.GetProvidedInstanceId());
}