Skip to content

Struct ServiceHandle

Namespace: DotBoxD.Services.Protocol
Assembly: DotBoxD.Services.dll

Wire payload returned by a service method whose declared return type is itself a [RpcService] interface. Carries the opaque instance identifier the server allocated when the root method ran; the client wraps the handle in a generated sub-service proxy that uses the identifier on every subsequent call.

public struct ServiceHandle

object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object, object), object.ToString()

Initializes an empty handle. Required so the string field initializers run for new ServiceHandle() and during deserialization.

public ServiceHandle()

Opaque, per-connection token issued by the server’s instance registry. Treat as a black box on the client; it is not a security boundary on its own (combined with per-connection scoping, the registry does not let one connection reach another’s instances).

public string InstanceId { readonly get; set; }

string

The RPC service name of the sub-service (e.g. “ISubService”).

public string ServiceName { readonly get; set; }

string