16 object? ICommandResult.Result =>
throw new NotImplementedException();
31 public string?
ToJson(JsonSerializerSettings? settings) => JsonConvert.SerializeObject(
Result, settings);
38 public string?
ToJson(Formatting formatting) => JsonConvert.SerializeObject(
Result, formatting);
string? ToJson(JsonSerializerSettings? settings)
Converts the Result to a JSON-serialised string.
JsonCommandResult(string message, T result)
string? ToJson(Formatting formatting)
Converts the Result to a JSON-serialised string.
string? Message
An optional message. This message may be written to logs.
T Result
The command's result. The result may be sent over the wire.
A generic, object-based variation of ICommandResult<T>.