Table of Contents

Struct ServiceHandle

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

Wire payload returned by a service method whose declared return type is itself a [DotBoxDService] 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
Inherited Members

Constructors

ServiceHandle()

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

public ServiceHandle()

Properties

InstanceId

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; }

Property Value

string

ServiceName

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

public string ServiceName { readonly get; set; }

Property Value

string