Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ createAsync() [2/2]

std::function< void()> Glacier2::SessionManagerPrx::createAsync ( std::string_view userId,
const std::optional< SessionControlPrx > & control,
std::function< void(std::optional<::Glacier2::SessionPrx >)> response,
std::function< void(std::exception_ptr)> exception = nullptr,
std::function< void(bool)> sent = nullptr,
const Ice::Context & context = Ice::noExplicitContext ) const

Creates a new session object.

Parameters
userIdThe user ID for the session.
controlA proxy to the session control object. This proxy is null when Glacier2.Server.Endpoints is not configured.
responseThe response callback. It accepts:
  • A proxy to the newly created session. This proxy is never null.
exceptionThe exception callback.
sentThe sent callback.
contextThe request context.
Returns
A function that can be called to cancel the invocation locally.