Interface IProxy<TProxy, TServer>
- Namespace
- MarymoorStudios.Core.Rpc
- Assembly
- MarymoorStudios.Core.Rpc.dll
Interface that provides generic constraints.
public interface IProxy<out TProxy, TServer> where TProxy : Proxy<TServer> where TServer : AServer<TServer>
Type Parameters
TProxy
TServer
Methods
Create(Promise<TServer>)
Creates a forwarded promise whose outcome will be the same as p
.
public static abstract TProxy Create(Promise<TServer> p)
Parameters
p
Promise<TServer>
Returns
- TProxy
Create(Resolver<TServer>)
Creates an unresolved promise whose future outcome is defined by r
.
public static abstract TProxy Create(Resolver<TServer> r)
Parameters
r
Resolver<TServer>
Returns
- TProxy
Create(Proxy<TServer>)
Creates a forwarded promise whose outcome will be the same as proxy
.
public static abstract TProxy Create(Proxy<TServer> proxy)
Parameters
proxy
Proxy<TServer>
Returns
- TProxy
Create(Exception)
Creates a failed promise whose outcome is ex
.
public static abstract TProxy Create(Exception ex)
Parameters
ex
Exception
Returns
- TProxy
Create(TServer)
Creates a successfully resolved promise.
public static abstract TProxy Create(TServer server)
Parameters
server
TServer
Returns
- TProxy