mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 14:51:41 +01:00
added missing documentation
This commit is contained in:
parent
62d5a7e9bd
commit
c1e8ed6d65
@ -89,6 +89,11 @@ namespace Capnp
|
|||||||
/// <exception cref="InvalidOperationException">The object type was already set to something different</exception>
|
/// <exception cref="InvalidOperationException">The object type was already set to something different</exception>
|
||||||
public new void SetStruct(ushort dataCount, ushort ptrCount) => base.SetStruct(dataCount, ptrCount);
|
public new void SetStruct(ushort dataCount, ushort ptrCount) => base.SetStruct(dataCount, ptrCount);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Determines the underyling object to be a capability.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="capabilityIndex">Capability table index, or null to encode a null pointer</param>
|
||||||
|
/// <exception cref="InvalidOperationException">The object type was already set to something different</exception>
|
||||||
public new void SetCapability(uint? capabilityIndex) => base.SetCapability(capabilityIndex);
|
public new void SetCapability(uint? capabilityIndex) => base.SetCapability(capabilityIndex);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -156,6 +156,16 @@ namespace Capnp.Rpc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unwraps given capability. Unwrapping walks the chain of promised capabilities and awaits their resolutions,
|
||||||
|
/// until we get the finally resolved capability. If it is the capability, the method returns a null reference.
|
||||||
|
/// If the capability is broken (resolved to exception, dependent answer faulted or cancelled, RPC endpoint closed),
|
||||||
|
/// it throws an exception.
|
||||||
|
/// </summary>
|
||||||
|
/// <typeparam name="TInterface">Capability interface</typeparam>
|
||||||
|
/// <param name="cap">capability to unwrap</param>
|
||||||
|
/// <returns>Task returning the eventually resolved capability</returns>
|
||||||
|
/// <exception cref="RpcException">Capability is broken</exception>
|
||||||
public static async Task<TInterface?> Unwrap<TInterface>(this TInterface cap) where TInterface: class, IDisposable
|
public static async Task<TInterface?> Unwrap<TInterface>(this TInterface cap) where TInterface: class, IDisposable
|
||||||
{
|
{
|
||||||
using var proxy = cap as Proxy;
|
using var proxy = cap as Proxy;
|
||||||
|
@ -497,6 +497,11 @@ namespace Capnp
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Determines the underyling object to be a capability.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="capabilityIndex">Capability table index, or null to encode a null pointer</param>
|
||||||
|
/// <exception cref="InvalidOperationException">The object type was already set to something different</exception>
|
||||||
protected void SetCapability(uint? capabilityIndex)
|
protected void SetCapability(uint? capabilityIndex)
|
||||||
{
|
{
|
||||||
if (capabilityIndex.HasValue)
|
if (capabilityIndex.HasValue)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user