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
stringThe ID of the Service Instance.
ServiceInstanceContext(string?, OriginatingIdentity?)
Creates a new Service Instance context.
public ServiceInstanceContext(string? instanceId, OriginatingIdentity? originatingIdentity)
Parameters
instanceId
stringThe ID of the Service Instance.
originatingIdentity
OriginatingIdentityDescribes the identity of the user that initiated a request from the Platform.
Properties
InstanceId
public string InstanceId { get; }
Property Value
OriginatingIdentity
Describes the identity of the user that initiated a request from the Platform. Optional.
public OriginatingIdentity? OriginatingIdentity { get; }
Property Value
Methods
Equals(ServiceInstanceContext?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ServiceInstanceContext? other)
Parameters
other
ServiceInstanceContextAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
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
ServiceInstanceContextright
ServiceInstanceContext
Returns
operator !=(ServiceInstanceContext?, ServiceInstanceContext?)
public static bool operator !=(ServiceInstanceContext? left, ServiceInstanceContext? right)
Parameters
left
ServiceInstanceContextright
ServiceInstanceContext