Table of Contents

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

p Promise<NothingServer>

NothingProxy(Resolver<NothingServer>)

Creates an unresolved promise whose future outcome is defined by r.

public NothingProxy(Resolver<NothingServer> r)

Parameters

r Resolver<NothingServer>

NothingProxy(NothingServer)

Creates a successfully resolved promise.

public NothingProxy(NothingServer value)

Parameters

value NothingServer

NothingProxy(Proxy<NothingServer>)

Creates a forwarded promise whose outcome will be the same as p.

public NothingProxy(Proxy<NothingServer> p)

Parameters

p Proxy<NothingServer>

NothingProxy(Exception)

Creates a failed promise whose outcome is ex.

public NothingProxy(Exception ex)

Parameters

ex Exception

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

p Promise<NothingProxy>

Returns

NothingProxy

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

p Promise<NothingServer>

Returns

NothingProxy

Create(Resolver<NothingServer>)

Creates an unresolved promise whose future outcome is defined by r.

static NothingProxy Create(Resolver<NothingServer> r)

Parameters

r Resolver<NothingServer>

Returns

NothingProxy

Create(NothingServer)

Creates a successfully resolved promise.

static NothingProxy Create(NothingServer value)

Parameters

value NothingServer

Returns

NothingProxy

Create(Proxy<NothingServer>)

Creates a forwarded promise whose outcome will be the same as p.

static NothingProxy Create(Proxy<NothingServer> p)

Parameters

p Proxy<NothingServer>

Returns

NothingProxy

Create(Exception)

Creates a failed promise whose outcome is ex.

static NothingProxy Create(Exception ex)

Parameters

ex Exception

Returns

NothingProxy