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

Thread-safety, Reentrance, Result Delivery

Example

ExampleServiceProxy::ConstructionResult ExampleServiceProxy::Preconstruct(
    ExampleServiceProxy::HandleType const& handle) noexcept {
  return Base::Preconstruct(handle.GetRequiredInstanceId(), handle.GetProvidedInstanceId());
}