Class MetadataProxy
- Namespace
- MarymoorStudios.Core.Rpc
- Assembly
- MarymoorStudios.Core.Rpc.dll
public sealed class MetadataProxy : Proxy<MetadataServer>, IProxy<MetadataProxy, MetadataServer>
- Inheritance
-
MetadataProxy
- Implements
- Inherited Members
Constructors
MetadataProxy(Promise<MetadataServer>)
Creates a forwarded promise whose outcome will be the same as p.
public MetadataProxy(Promise<MetadataServer> p)
Parameters
MetadataProxy(Resolver<MetadataServer>)
Creates an unresolved promise whose future outcome is defined by r.
public MetadataProxy(Resolver<MetadataServer> r)
Parameters
MetadataProxy(MetadataServer)
Creates a successfully resolved promise.
public MetadataProxy(MetadataServer value)
Parameters
valueMetadataServer
MetadataProxy(Proxy<MetadataServer>)
Creates a forwarded promise whose outcome will be the same as p.
public MetadataProxy(Proxy<MetadataServer> p)
Parameters
MetadataProxy(Exception)
Creates a failed promise whose outcome is ex.
public MetadataProxy(Exception ex)
Parameters
exException
Methods
GetCapabilities()
public Promise<IMetadata.Descriptor[]> GetCapabilities()
Returns
Sync()
Sends a synchronization request to target of this proxy.
public override Promise Sync()
Returns
- Promise
Resolves successfully if and only if this proxy itself has resolved successfully end-to-end (possibly remotely), otherwise resolves to the same failure that the proxy resolved to.
Remarks
Sync() is often used to prove successful initialization before pipelining methods on a proxy. Sync() determines if a (possibly remote) computation that produced the proxy succeeded or failed. The proxy may later become aborted (particularly if it is remote) , but at the moment in time when the Sync() completed the proxy was successfully connected.
Operators
implicit operator MetadataProxy(Promise<MetadataProxy>)
Implicit conversion to its syntax.
public static implicit operator MetadataProxy(Promise<MetadataProxy> p)
Parameters
Returns
Explicit Interface Implementations
Create(Promise<MetadataServer>)
Creates a forwarded promise whose outcome will be the same as p.
static MetadataProxy Create(Promise<MetadataServer> p)
Parameters
Returns
Create(Resolver<MetadataServer>)
Creates an unresolved promise whose future outcome is defined by r.
static MetadataProxy Create(Resolver<MetadataServer> r)
Parameters
Returns
Create(MetadataServer)
Creates a successfully resolved promise.
static MetadataProxy Create(MetadataServer value)
Parameters
valueMetadataServer
Returns
Create(Proxy<MetadataServer>)
Creates a forwarded promise whose outcome will be the same as p.
static MetadataProxy Create(Proxy<MetadataServer> p)
Parameters
Returns
Create(Exception)
Creates a failed promise whose outcome is ex.
static MetadataProxy Create(Exception ex)
Parameters
exException