Class PhotonActionRequest
- Namespace
- Phoesion.Glow.SDK
- Assembly
- Phoesion.Glow.SDK.Photons.dll
[Serializable]
[MessagePackObject(false)]
public sealed class PhotonActionRequest : PhotonRequest, IPhotonActionRequest, IPhotonRequest, IPhotonAction, IPhoton, IHasCookies
- Inheritance
-
object
FiberMsg
PhotonActionRequest
- Implements
-
- Inherited Members
-
Fields
KeyBase
protected const int KeyBase = 10
Field Value
- int
KeyCount
protected const int KeyCount = 28
Field Value
- int
Properties
BodyStreamInfo
[Key(36)]
public StreamInfo BodyStreamInfo { get; set; }
Property Value
- StreamInfo
BodyZeroPayload
[Key(37)]
public ArraySegment<byte> BodyZeroPayload { get; set; }
Property Value
- ArraySegment<byte>
ConnectionInfo
[JsonIgnore]
[IgnoreMember]
public IClientConnectionInfo ConnectionInfo { get; }
Property Value
- IClientConnectionInfo
ConnectionType
[Key(10)]
public ClientConnectionTypes ConnectionType { get; set; }
Property Value
- ClientConnectionTypes
ContentLength
[Key(24)]
public long? ContentLength { get; set; }
Property Value
- long?
ContentType
[Key(25)]
[MessagePackFormatter(typeof(StringInterningFormatter))]
public string? ContentType { get; set; }
Property Value
- string
Cookies
[Key(29)]
[MessagePackFormatter(typeof(CaseInsensitiveRecyclableDictionaryFormatter<Cookie>))]
public Dictionary<string, Cookie>? Cookies { get; set; }
Property Value
- Dictionary<string, Cookie>
CustomConnectionInfo
[Key(20)]
public object? CustomConnectionInfo { get; set; }
Property Value
- object
Files
[Key(31)]
[MessagePackFormatter(typeof(CaseInsensitiveRecyclableDictionaryFormatter<FormFile>))]
public Dictionary<string, FormFile>? Files { get; set; }
Property Value
- Dictionary<string, FormFile>
[Key(30)]
[MessagePackFormatter(typeof(CaseInsensitiveStringValueRecyclableDictionaryFormatter))]
public Dictionary<string, StringValues>? Form { get; set; }
Property Value
- Dictionary<string, StringValues>
FullUrl
[Key(22)]
[MessagePackFormatter(typeof(StringInterningFormatter))]
public string? FullUrl { get; set; }
Property Value
- string
GRPCClientConnectionInfo
[Key(12)]
public gRPCClientConnectionInfo? GRPCClientConnectionInfo { get; set; }
Property Value
- gRPCClientConnectionInfo
Host
[JsonIgnore]
[IgnoreMember]
public string? Host { get; set; }
Property Value
- string
IsOnlyBodyZeroPayload
[JsonIgnore]
[IgnoreMember]
public bool IsOnlyBodyZeroPayload { get; }
Property Value
- bool
Method
[Key(21)]
public Methods Method { get; set; }
Property Value
- Methods
Params
[Key(27)]
[MessagePackFormatter(typeof(StringValuesInterningFormatter))]
public StringValues Params { get; set; }
Property Value
- StringValues
Path
[JsonIgnore]
[IgnoreMember]
public StringValues Path { get; set; }
Property Value
- StringValues
PathBase
[Key(26)]
[MessagePackFormatter(typeof(StringValuesInterningFormatter))]
public StringValues PathBase { get; set; }
Property Value
- StringValues
Protocol
[Key(23)]
[MessagePackFormatter(typeof(StringInterningFormatter))]
public string? Protocol { get; set; }
Property Value
- string
Query
[Key(28)]
[MessagePackFormatter(typeof(CaseInsensitiveStringValueRecyclableDictionaryFormatter))]
public Dictionary<string, StringValues>? Query { get; set; }
Property Value
- Dictionary<string, StringValues>
RestConnectionInfo
[Key(11)]
public RestClientConnectionInfo? RestConnectionInfo { get; set; }
Property Value
- RestClientConnectionInfo
Scheme
[JsonIgnore]
[IgnoreMember]
public string? Scheme { get; }
Property Value
- string
SignalRConnectionInfo
[Key(13)]
public SignalRClientConnectionInfo? SignalRConnectionInfo { get; set; }
Property Value
- SignalRClientConnectionInfo
Url
[IgnoreMember]
[JsonIgnore]
public Uri? Url { get; set; }
Property Value
- Uri
Methods
CopyBodyToAsync(Stream)
public Task CopyBodyToAsync(Stream destination)
Parameters
destination
Stream
Returns
- Task
CopyBodyToAsync(Stream, int, CancellationToken)
public Task CopyBodyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken)
Parameters
destination
Stream
bufferSize
int
cancellationToken
CancellationToken
Returns
- Task
CopyBodyToAsync(Stream, CancellationToken)
public Task CopyBodyToAsync(Stream destination, CancellationToken cancellationToken)
Parameters
destination
Stream
cancellationToken
CancellationToken
Returns
- Task
GetBodyStreamAsync()
public Task<Stream> GetBodyStreamAsync()
Returns
- Task<Stream>
GetBodyStreamAsync(CancellationToken)
public Task<Stream> GetBodyStreamAsync(CancellationToken cancellationToken)
Parameters
cancellationToken
CancellationToken
Returns
- Task<Stream>
GetCookieValue(string)
public string? GetCookieValue(string Key)
Parameters
Key
string
Returns
- string
GetCookieValue(string, out string?)
public bool GetCookieValue(string Key, out string? Cookie)
Parameters
Key
string
Cookie
string
Returns
- bool
GetUrlWithQueryParameters(Uri?, Dictionary<string, StringValues>?, params (string Key, string Value)[])
public static Uri? GetUrlWithQueryParameters(Uri? url, Dictionary<string, StringValues>? query, params (string Key, string Value)[] queryParameters)
Parameters
url
Uri
query
Dictionary<string, StringValues>
queryParameters
(string Key, string Value)[]
Returns
- Uri
GetUrlWithQueryParameters(params (string Key, string Value)[])
public Uri? GetUrlWithQueryParameters(params (string Key, string Value)[] queryParameters)
Parameters
queryParameters
(string Key, string Value)[]
Returns
- Uri
ReadBodyAsUTF8Async(long, CancellationToken)
public Task<string?> ReadBodyAsUTF8Async(long maxLength = 31457280, CancellationToken cancellationToken = default)
Parameters
maxLength
long
cancellationToken
CancellationToken
Returns
- Task<string>
ReadBodyAsync(long, CancellationToken)
public Task<byte[]?> ReadBodyAsync(long maxLength = 31457280, CancellationToken cancellationToken = default)
Parameters
maxLength
long
cancellationToken
CancellationToken
Returns
- Task<byte[]>
Reset()
public override void Reset()
SetBodyStream(Stream)
public void SetBodyStream(Stream stream)
Parameters
stream
Stream
SetCookie(string, string?)
public ICookie SetCookie(string Key, string? Value)
Parameters
Key
string
Value
string
Returns
- ICookie
WriteBody(string?)
public void WriteBody(string? value)
Parameters
value
string