Table of Contents

Class ServiceInstanceContext

Namespace
OpenServiceBroker.Instances
Assembly
OpenServiceBroker.Server.dll

Identifies a specific Service Instance to apply an operation to.

public class ServiceInstanceContext : IEquatable<ServiceInstanceContext>
Inheritance
ServiceInstanceContext
Implements
Derived
Inherited Members
Extension Methods

Constructors

ServiceInstanceContext(string?)

Creates a new Service Instance context.

public ServiceInstanceContext(string? instanceId)

Parameters

instanceId string

The ID of the Service Instance.

ServiceInstanceContext(string?, OriginatingIdentity?)

Creates a new Service Instance context.

public ServiceInstanceContext(string? instanceId, OriginatingIdentity? originatingIdentity)

Parameters

instanceId string

The ID of the Service Instance.

originatingIdentity OriginatingIdentity

Describes the identity of the user that initiated a request from the Platform.

Properties

InstanceId

public string InstanceId { get; }

Property Value

string

OriginatingIdentity

Describes the identity of the user that initiated a request from the Platform. Optional.

public OriginatingIdentity? OriginatingIdentity { get; }

Property Value

OriginatingIdentity

Methods

Equals(ServiceInstanceContext?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ServiceInstanceContext? other)

Parameters

other ServiceInstanceContext

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Operators

operator ==(ServiceInstanceContext?, ServiceInstanceContext?)

public static bool operator ==(ServiceInstanceContext? left, ServiceInstanceContext? right)

Parameters

left ServiceInstanceContext
right ServiceInstanceContext

Returns

bool

operator !=(ServiceInstanceContext?, ServiceInstanceContext?)

public static bool operator !=(ServiceInstanceContext? left, ServiceInstanceContext? right)

Parameters

left ServiceInstanceContext
right ServiceInstanceContext

Returns

bool