Class NothingProxy
- Namespace
- MarymoorStudios.Core.Rpc
- Assembly
- MarymoorStudios.Core.Rpc.dll
public sealed class NothingProxy : Proxy<NothingServer>, IProxy<NothingProxy, NothingServer>
- Inheritance
-
NothingProxy
- Implements
- Inherited Members
Constructors
NothingProxy(Promise<NothingServer>)
Creates a forwarded promise whose outcome will be the same as p.
public NothingProxy(Promise<NothingServer> p)
Parameters
NothingProxy(Resolver<NothingServer>)
Creates an unresolved promise whose future outcome is defined by r.
public NothingProxy(Resolver<NothingServer> r)
Parameters
NothingProxy(NothingServer)
Creates a successfully resolved promise.
public NothingProxy(NothingServer value)
Parameters
valueNothingServer
NothingProxy(Proxy<NothingServer>)
Creates a forwarded promise whose outcome will be the same as p.
public NothingProxy(Proxy<NothingServer> p)
Parameters
NothingProxy(Exception)
Creates a failed promise whose outcome is ex.
public NothingProxy(Exception ex)
Parameters
exException
Methods
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 NothingProxy(Promise<NothingProxy>)
Implicit conversion to its syntax.
public static implicit operator NothingProxy(Promise<NothingProxy> p)
Parameters
Returns
Explicit Interface Implementations
Create(Promise<NothingServer>)
Creates a forwarded promise whose outcome will be the same as p.
static NothingProxy Create(Promise<NothingServer> p)
Parameters
Returns
Create(Resolver<NothingServer>)
Creates an unresolved promise whose future outcome is defined by r.
static NothingProxy Create(Resolver<NothingServer> r)
Parameters
Returns
Create(NothingServer)
Creates a successfully resolved promise.
static NothingProxy Create(NothingServer value)
Parameters
valueNothingServer
Returns
Create(Proxy<NothingServer>)
Creates a forwarded promise whose outcome will be the same as p.
static NothingProxy Create(Proxy<NothingServer> p)
Parameters
Returns
Create(Exception)
Creates a failed promise whose outcome is ex.
static NothingProxy Create(Exception ex)
Parameters
exException