Class OriginatingIdentity
- Namespace
- OpenServiceBroker
- Assembly
- OpenServiceBroker.Model.dll
Describes the identity of the user that initiated a request from the Platform.
public class OriginatingIdentity : IEquatable<OriginatingIdentity>
- Inheritance
-
OriginatingIdentity
- Implements
- Inherited Members
- Extension Methods
Constructors
OriginatingIdentity(string, JObject)
Describes the identity of the user that initiated a request from the Platform.
public OriginatingIdentity(string platform, JObject value)
Parameters
platform
stringThe Platform from which the request is being sent.
value
JObjectA JSON object describing the user.
Fields
HttpHeaderName
The name of the HTTP header used to transmit this information.
public const string HttpHeaderName = "X-Broker-API-Originating-Identity"
Field Value
Properties
Platform
The Platform from which the request is being sent.
public string Platform { get; }
Property Value
Value
A JSON object describing the user.
public JObject Value { get; }
Property Value
- JObject
Methods
Equals(OriginatingIdentity)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(OriginatingIdentity other)
Parameters
other
OriginatingIdentityAn 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.
Parse(string)
Parses the originating identity object from its header string representation.
public static OriginatingIdentity Parse(string value)
Parameters
value
string
Returns
ToString()
Serialized the originating identity object to its header string representation.
public override string ToString()
Returns
Operators
operator ==(OriginatingIdentity, OriginatingIdentity)
public static bool operator ==(OriginatingIdentity left, OriginatingIdentity right)
Parameters
left
OriginatingIdentityright
OriginatingIdentity
Returns
operator !=(OriginatingIdentity, OriginatingIdentity)
public static bool operator !=(OriginatingIdentity left, OriginatingIdentity right)
Parameters
left
OriginatingIdentityright
OriginatingIdentity