Class SessionPrxHelper
- Namespace
- IceGrid
- Assembly
- IceGrid.dll
Helper class for proxy SessionPrx.
public sealed class SessionPrxHelper : ObjectPrxHelperBase, SessionPrx, SessionPrx, ObjectPrx, IEquatable<ObjectPrx>
- Inheritance
-
SessionPrxHelper
- Implements
- Inherited Members
Remarks
The Slice compiler generated this proxy helper class from Slice interface ::IceGrid::Session.
Methods
allocateObjectById(Identity, Dictionary<string, string>?)
Allocates an object.
public ObjectPrx? allocateObjectById(Identity id, Dictionary<string, string>? context = null)
Parameters
idIdentityThe identity of the object to allocate.
contextDictionary<string, string>The request context.
Returns
- ObjectPrx
A proxy to the allocated object. This proxy is never null.
Exceptions
- AllocationException
Thrown when the allocation fails.
- ObjectNotRegisteredException
Thrown when an object with the given identity is not registered with the registry.
- See Also
allocateObjectByIdAsync(Identity, Dictionary<string, string>?, IProgress<bool>?, CancellationToken)
Allocates an object.
public Task<ObjectPrx?> allocateObjectByIdAsync(Identity id, Dictionary<string, string>? context = null, IProgress<bool>? progress = null, CancellationToken cancel = default)
Parameters
idIdentityThe identity of the object to allocate.
contextDictionary<string, string>The request context.
progressIProgress<bool>The sent progress provider.
cancelCancellationTokenA cancellation token that receives the cancellation requests.
Returns
Exceptions
- AllocationException
Thrown when the allocation fails.
- ObjectNotRegisteredException
Thrown when an object with the given identity is not registered with the registry.
- See Also
allocateObjectByType(string, Dictionary<string, string>?)
Allocates an object with the given type.
public ObjectPrx? allocateObjectByType(string type, Dictionary<string, string>? context = null)
Parameters
typestringThe type of the object.
contextDictionary<string, string>The request context.
Returns
- ObjectPrx
A proxy to the allocated object. This proxy is never null.
Exceptions
- AllocationException
Thrown when the allocation fails.
- See Also
allocateObjectByTypeAsync(string, Dictionary<string, string>?, IProgress<bool>?, CancellationToken)
Allocates an object with the given type.
public Task<ObjectPrx?> allocateObjectByTypeAsync(string type, Dictionary<string, string>? context = null, IProgress<bool>? progress = null, CancellationToken cancel = default)
Parameters
typestringThe type of the object.
contextDictionary<string, string>The request context.
progressIProgress<bool>The sent progress provider.
cancelCancellationTokenA cancellation token that receives the cancellation requests.
Returns
Exceptions
- AllocationException
Thrown when the allocation fails.
- See Also
checkedCast(ObjectPrx?, Dictionary<string, string>?)
Creates a new SessionPrx from an existing proxy after checking that the target object implements Slice interface Session.
public static SessionPrx? checkedCast(ObjectPrx? proxy, Dictionary<string, string>? context = null)
Parameters
proxyObjectPrxThe source proxy.
contextDictionary<string, string>The request context.
Returns
- SessionPrx
A new proxy with the requested type, or null if the target object does not implement Slice interface
Session.
checkedCast(ObjectPrx?, string, Dictionary<string, string>?)
Creates a new SessionPrx from an existing proxy after checking that the target facet implements Slice interface Session.
public static SessionPrx? checkedCast(ObjectPrx? proxy, string facet, Dictionary<string, string>? context = null)
Parameters
proxyObjectPrxThe source proxy.
facetstringThe facet.
contextDictionary<string, string>The request context.
Returns
- SessionPrx
A new proxy with the requested type, or null if the target facet does not implement Slice interface
Session.
checkedCastAsync(ObjectPrx, Dictionary<string, string>?, IProgress<bool>?, CancellationToken)
Creates a new SessionPrx from an existing proxy after checking that the target object implements Slice interface Session.
public static Task<SessionPrx?> checkedCastAsync(ObjectPrx proxy, Dictionary<string, string>? context = null, IProgress<bool>? progress = null, CancellationToken cancel = default)
Parameters
proxyObjectPrxThe source proxy.
contextDictionary<string, string>The request context.
progressIProgress<bool>The sent progress reporter.
cancelCancellationTokenThe cancellation token.
Returns
- Task<SessionPrx>
A new proxy with the requested type, or null if the target object does not implement Slice interface
Session.
checkedCastAsync(ObjectPrx, string, Dictionary<string, string>?, IProgress<bool>?, CancellationToken)
Creates a new SessionPrx from an existing proxy after checking that the target facet implements Slice interface Session.
public static Task<SessionPrx?> checkedCastAsync(ObjectPrx proxy, string facet, Dictionary<string, string>? context = null, IProgress<bool>? progress = null, CancellationToken cancel = default)
Parameters
proxyObjectPrxThe source proxy.
facetstringThe facet.
contextDictionary<string, string>The request context.
progressIProgress<bool>The sent progress reporter.
cancelCancellationTokenThe cancellation token.
Returns
- Task<SessionPrx>
A new proxy with the requested type, or null if the target facet does not implement Slice interface
Session.
createProxy(Communicator, string)
Creates a new proxy from a communicator and a proxy string.
public static SessionPrx createProxy(Communicator communicator, string proxyString)
Parameters
communicatorCommunicatorThe communicator.
proxyStringstringThe stringified proxy.
Returns
- SessionPrx
A new proxy.
destroy(Dictionary<string, string>?)
Destroys this session.
public void destroy(Dictionary<string, string>? context = null)
Parameters
contextDictionary<string, string>The request context.
destroyAsync(Dictionary<string, string>?, IProgress<bool>?, CancellationToken)
Destroys this session.
public Task destroyAsync(Dictionary<string, string>? context = null, IProgress<bool>? progress = null, CancellationToken cancel = default)
Parameters
contextDictionary<string, string>The request context.
progressIProgress<bool>The sent progress provider.
cancelCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- Task
A task that represents the asynchronous operation.
ice_staticId()
Gets the type ID of the associated Slice interface.
public static string ice_staticId()
Returns
- string
The string
::IceGrid::Session.
keepAlive(Dictionary<string, string>?)
Keeps the session alive.
public void keepAlive(Dictionary<string, string>? context = null)
Parameters
contextDictionary<string, string>The request context.
keepAliveAsync(Dictionary<string, string>?, IProgress<bool>?, CancellationToken)
Keeps the session alive.
public Task keepAliveAsync(Dictionary<string, string>? context = null, IProgress<bool>? progress = null, CancellationToken cancel = default)
Parameters
contextDictionary<string, string>The request context.
progressIProgress<bool>The sent progress provider.
cancelCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- Task
A task that represents the asynchronous operation.
read(InputStream)
Unmarshals a value from an input stream.
public static SessionPrx? read(InputStream istr)
Parameters
istrInputStreamThe input stream.
Returns
- SessionPrx
The unmarshaled value.
releaseObject(Identity, Dictionary<string, string>?)
Releases an object that was allocated using allocateObjectByIdAsync(Identity, Dictionary<string, string>?, IProgress<bool>?, CancellationToken) or allocateObjectByTypeAsync(string, Dictionary<string, string>?, IProgress<bool>?, CancellationToken).
public void releaseObject(Identity id, Dictionary<string, string>? context = null)
Parameters
idIdentityThe identity of the object to release.
contextDictionary<string, string>The request context.
Exceptions
- AllocationException
Thrown when the object can't be released. This can happen when the object is not allocatable or is not allocated by this session.
- ObjectNotRegisteredException
Thrown when an object with the given identity is not registered with the registry.
releaseObjectAsync(Identity, Dictionary<string, string>?, IProgress<bool>?, CancellationToken)
Releases an object that was allocated using allocateObjectByIdAsync(Identity, Dictionary<string, string>?, IProgress<bool>?, CancellationToken) or allocateObjectByTypeAsync(string, Dictionary<string, string>?, IProgress<bool>?, CancellationToken).
public Task releaseObjectAsync(Identity id, Dictionary<string, string>? context = null, IProgress<bool>? progress = null, CancellationToken cancel = default)
Parameters
idIdentityThe identity of the object to release.
contextDictionary<string, string>The request context.
progressIProgress<bool>The sent progress provider.
cancelCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- Task
A task that represents the asynchronous operation.
Exceptions
- AllocationException
Thrown when the object can't be released. This can happen when the object is not allocatable or is not allocated by this session.
- ObjectNotRegisteredException
Thrown when an object with the given identity is not registered with the registry.
setAllocationTimeout(int, Dictionary<string, string>?)
Sets the allocation timeout. When no object is immediately available for an allocation request, the
implementation of allocateObjectByIdAsync(Identity, Dictionary<string, string>?, IProgress<bool>?, CancellationToken) and allocateObjectByTypeAsync(string, Dictionary<string, string>?, IProgress<bool>?, CancellationToken) waits for the duration of
this timeout.
public void setAllocationTimeout(int timeout, Dictionary<string, string>? context = null)
Parameters
timeoutintThe timeout in milliseconds.
contextDictionary<string, string>The request context.
setAllocationTimeoutAsync(int, Dictionary<string, string>?, IProgress<bool>?, CancellationToken)
Sets the allocation timeout. When no object is immediately available for an allocation request, the
implementation of allocateObjectByIdAsync(Identity, Dictionary<string, string>?, IProgress<bool>?, CancellationToken) and allocateObjectByTypeAsync(string, Dictionary<string, string>?, IProgress<bool>?, CancellationToken) waits for the duration of
this timeout.
public Task setAllocationTimeoutAsync(int timeout, Dictionary<string, string>? context = null, IProgress<bool>? progress = null, CancellationToken cancel = default)
Parameters
timeoutintThe timeout in milliseconds.
contextDictionary<string, string>The request context.
progressIProgress<bool>The sent progress provider.
cancelCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- Task
A task that represents the asynchronous operation.
uncheckedCast(ObjectPrx?)
Creates a new SessionPrx from an existing proxy.
public static SessionPrx? uncheckedCast(ObjectPrx? proxy)
Parameters
proxyObjectPrxThe source proxy.
Returns
- SessionPrx
A new proxy with the requested type, or null if the source proxy is null.
uncheckedCast(ObjectPrx?, string)
Creates a new SessionPrx from an existing proxy after changing its facet.
public static SessionPrx? uncheckedCast(ObjectPrx? proxy, string facet)
Parameters
Returns
- SessionPrx
A new proxy with the requested type, or null if the source proxy is null.
write(OutputStream, SessionPrx?)
Marshals a value into an output stream.
public static void write(OutputStream ostr, SessionPrx? v)
Parameters
ostrOutputStreamThe output stream.
vSessionPrxThe value to marshal.