Class CommandContext
Context for JSON handling of IPC commands
[JsonSerializable(typeof(Code), TypeInfoPropertyName = "dcsCode")]
[JsonSerializable(typeof(Cancel))]
[JsonSerializable(typeof(Ignore))]
[JsonSerializable(typeof(Resolve))]
[JsonSerializable(typeof(Rewrite))]
[JsonSerializable(typeof(GetFileInfo))]
[JsonSerializable(typeof(ResolvePath))]
[JsonSerializable(typeof(CheckPassword))]
[JsonSerializable(typeof(EvaluateExpression))]
[JsonSerializable(typeof(Flush))]
[JsonSerializable(typeof(InvalidateChannel))]
[JsonSerializable(typeof(SetUpdateStatus))]
[JsonSerializable(typeof(SimpleCode))]
[JsonSerializable(typeof(WriteMessage))]
[JsonSerializable(typeof(SendHttpResponse))]
[JsonSerializable(typeof(AddHttpEndpoint))]
[JsonSerializable(typeof(ReceivedHttpRequest))]
[JsonSerializable(typeof(RemoveHttpEndpoint))]
[JsonSerializable(typeof(Acknowledge))]
[JsonSerializable(typeof(GetObjectModel))]
[JsonSerializable(typeof(QueryObjectModel))]
[JsonSerializable(typeof(LockObjectModel))]
[JsonSerializable(typeof(PatchObjectModel))]
[JsonSerializable(typeof(SetNetworkProtocol))]
[JsonSerializable(typeof(SetObjectModel))]
[JsonSerializable(typeof(SyncObjectModel))]
[JsonSerializable(typeof(UnlockObjectModel))]
[JsonSerializable(typeof(InstallSystemPackage))]
[JsonSerializable(typeof(UninstallSystemPackage))]
[JsonSerializable(typeof(InstallPlugin))]
[JsonSerializable(typeof(NotifyPluginStarted))]
[JsonSerializable(typeof(ReloadPlugin))]
[JsonSerializable(typeof(ResolvePluginProcess))]
[JsonSerializable(typeof(SetPluginData))]
[JsonSerializable(typeof(SetPluginProcess))]
[JsonSerializable(typeof(StartPlugin))]
[JsonSerializable(typeof(StartPlugins))]
[JsonSerializable(typeof(StopPlugin))]
[JsonSerializable(typeof(StopPlugins))]
[JsonSerializable(typeof(UninstallPlugin))]
[JsonSerializable(typeof(AddUserSession))]
[JsonSerializable(typeof(RemoveUserSession))]
[JsonSerializable(typeof(BaseResponse))]
[JsonSerializable(typeof(ErrorResponse))]
[JsonSerializable(typeof(bool))]
[JsonSerializable(typeof(int))]
[JsonSerializable(typeof(string))]
[JsonSerializable(typeof(JsonElement))]
[JsonSourceGenerationOptions(PreferredObjectCreationHandling = JsonObjectCreationHandling.Populate, PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase)]
public sealed class CommandContext : JsonSerializerContext, IJsonTypeInfoResolver
- Inheritance
-
CommandContext
- Implements
- Inherited Members
Constructors
CommandContext()
public CommandContext()
CommandContext(JsonSerializerOptions)
public CommandContext(JsonSerializerOptions options)
Parameters
optionsJsonSerializerOptions
Properties
AccessLevel
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<AccessLevel> AccessLevel { get; }
Property Value
Acknowledge
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<Acknowledge> Acknowledge { get; }
Property Value
AddHttpEndpoint
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<AddHttpEndpoint> AddHttpEndpoint { get; }
Property Value
AddUserSession
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<AddUserSession> AddUserSession { get; }
Property Value
BaseResponse
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<BaseResponse> BaseResponse { get; }
Property Value
Boolean
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<bool> Boolean { get; }
Property Value
Byte
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<byte> Byte { get; }
Property Value
Cancel
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<Cancel> Cancel { get; }
Property Value
CheckPassword
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<CheckPassword> CheckPassword { get; }
Property Value
CodeChannel
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<CodeChannel> CodeChannel { get; }
Property Value
CodeFlags
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<CodeFlags> CodeFlags { get; }
Property Value
CodeParameter
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<CodeParameter> CodeParameter { get; }
Property Value
CodeType
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<CodeType> CodeType { get; }
Property Value
DateTime
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<DateTime> DateTime { get; }
Property Value
Default
The default JsonSerializerContext associated with a default JsonSerializerOptions instance.
public static CommandContext Default { get; }
Property Value
DictionaryStringString
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<Dictionary<string, string>> DictionaryStringString { get; }
Property Value
ErrorResponse
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ErrorResponse> ErrorResponse { get; }
Property Value
EvaluateExpression
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<EvaluateExpression> EvaluateExpression { get; }
Property Value
EventLogLevel
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<EventLogLevel> EventLogLevel { get; }
Property Value
FileDirectory
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<FileDirectory> FileDirectory { get; }
Property Value
Flush
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<Flush> Flush { get; }
Property Value
GeneratedSerializerOptions
The source-generated options associated with this context.
protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }
Property Value
GetFileInfo
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<GetFileInfo> GetFileInfo { get; }
Property Value
GetObjectModel
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<GetObjectModel> GetObjectModel { get; }
Property Value
HttpEndpointType
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<HttpEndpointType> HttpEndpointType { get; }
Property Value
HttpResponseType
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<HttpResponseType> HttpResponseType { get; }
Property Value
Ignore
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<Ignore> Ignore { get; }
Property Value
InstallPlugin
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<InstallPlugin> InstallPlugin { get; }
Property Value
InstallSystemPackage
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<InstallSystemPackage> InstallSystemPackage { get; }
Property Value
Int32
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<int> Int32 { get; }
Property Value
Int64
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<long> Int64 { get; }
Property Value
InvalidateChannel
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<InvalidateChannel> InvalidateChannel { get; }
Property Value
JsonElement
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<JsonElement> JsonElement { get; }
Property Value
KeywordType
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<KeywordType> KeywordType { get; }
Property Value
ListCodeParameter
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<List<CodeParameter>> ListCodeParameter { get; }
Property Value
LockObjectModel
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<LockObjectModel> LockObjectModel { get; }
Property Value
Message
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<Message> Message { get; }
Property Value
MessageType
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<MessageType> MessageType { get; }
Property Value
NetworkProtocol
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<NetworkProtocol> NetworkProtocol { get; }
Property Value
NotifyPluginStarted
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<NotifyPluginStarted> NotifyPluginStarted { get; }
Property Value
NullableEventLogLevel
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<EventLogLevel?> NullableEventLogLevel { get; }
Property Value
NullableFileDirectory
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<FileDirectory?> NullableFileDirectory { get; }
Property Value
NullableInt32
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<int?> NullableInt32 { get; }
Property Value
NullableInt64
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<long?> NullableInt64 { get; }
Property Value
PatchObjectModel
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<PatchObjectModel> PatchObjectModel { get; }
Property Value
QueryObjectModel
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<QueryObjectModel> QueryObjectModel { get; }
Property Value
ReceivedHttpRequest
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ReceivedHttpRequest> ReceivedHttpRequest { get; }
Property Value
ReloadPlugin
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ReloadPlugin> ReloadPlugin { get; }
Property Value
RemoveHttpEndpoint
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<RemoveHttpEndpoint> RemoveHttpEndpoint { get; }
Property Value
RemoveUserSession
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<RemoveUserSession> RemoveUserSession { get; }
Property Value
Resolve
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<Resolve> Resolve { get; }
Property Value
ResolvePath
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ResolvePath> ResolvePath { get; }
Property Value
ResolvePluginProcess
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ResolvePluginProcess> ResolvePluginProcess { get; }
Property Value
Rewrite
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<Rewrite> Rewrite { get; }
Property Value
SendHttpResponse
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<SendHttpResponse> SendHttpResponse { get; }
Property Value
SessionType
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<SessionType> SessionType { get; }
Property Value
SetNetworkProtocol
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<SetNetworkProtocol> SetNetworkProtocol { get; }
Property Value
SetObjectModel
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<SetObjectModel> SetObjectModel { get; }
Property Value
SetPluginData
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<SetPluginData> SetPluginData { get; }
Property Value
SetPluginProcess
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<SetPluginProcess> SetPluginProcess { get; }
Property Value
SetUpdateStatus
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<SetUpdateStatus> SetUpdateStatus { get; }
Property Value
SimpleCode
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<SimpleCode> SimpleCode { get; }
Property Value
StartPlugin
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<StartPlugin> StartPlugin { get; }
Property Value
StartPlugins
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<StartPlugins> StartPlugins { get; }
Property Value
StopPlugin
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<StopPlugin> StopPlugin { get; }
Property Value
StopPlugins
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<StopPlugins> StopPlugins { get; }
Property Value
String
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<string> String { get; }
Property Value
SyncObjectModel
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<SyncObjectModel> SyncObjectModel { get; }
Property Value
UninstallPlugin
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<UninstallPlugin> UninstallPlugin { get; }
Property Value
UninstallSystemPackage
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<UninstallSystemPackage> UninstallSystemPackage { get; }
Property Value
UnlockObjectModel
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<UnlockObjectModel> UnlockObjectModel { get; }
Property Value
WriteMessage
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<WriteMessage> WriteMessage { get; }
Property Value
dcsCode
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<Code> dcsCode { get; }
Property Value
Methods
GetTypeInfo(Type)
public override JsonTypeInfo? GetTypeInfo(Type type)
Parameters
typeType