Edit JSON to uppercase (#168)

* Edit JSON to uppercase

* Updated a few more
This commit is contained in:
Greg Ingram 2019-11-21 21:01:06 -05:00 committed by Aman Bhardwaj
parent 8af6fb038e
commit 3a7a19c9b1
10 changed files with 46 additions and 46 deletions

View File

@ -360,7 +360,7 @@ namespace MyActorClient
### Invoke Actor method without Actor Service Remoting ### Invoke Actor method without Actor Service Remoting
You can invoke Actor methods without remoting (directly over http or using helper methods provided in ActorProxy), if Actor method accepts at-most one argument. Actor runtime will deserialize the incoming request body from client and use it as method argument to invoke the actor method. You can invoke Actor methods without remoting (directly over http or using helper methods provided in ActorProxy), if Actor method accepts at-most one argument. Actor runtime will deserialize the incoming request body from client and use it as method argument to invoke the actor method.
When making non-remoting calls Actor method arguments and return types are serialized, deserialized as json. When making non-remoting calls Actor method arguments and return types are serialized, deserialized as JSON.
`ActorProxy.Create(actorID, actorType)` returns ActorProxy instance and allow to use the raw http client to invoke the method defined in `IMyActor`. `ActorProxy.Create(actorID, actorType)` returns ActorProxy instance and allow to use the raw http client to invoke the method defined in `IMyActor`.

View File

@ -44,7 +44,7 @@ Actor --- IDemoActor
### Invoke Actor method without Remoting over Http. ### Invoke Actor method without Remoting over Http.
You can invoke Actor methods without remoting (directly over http), if Actor method accepts at-most one argument. You can invoke Actor methods without remoting (directly over http), if Actor method accepts at-most one argument.
Actor runtime will deserialize the incoming request body from client and use it as method argument to invoke the actor method. Actor runtime will deserialize the incoming request body from client and use it as method argument to invoke the actor method.
When making non-remoting calls Actor method arguments and return types are serialized, deserialized as json. When making non-remoting calls Actor method arguments and return types are serialized, deserialized as JSON.
**Save Data** **Save Data**

View File

@ -54,7 +54,7 @@ namespace RoutingSample
/// </summary> /// </summary>
/// <param name="app">Application builder.</param> /// <param name="app">Application builder.</param>
/// <param name="env">Webhost environment.</param> /// <param name="env">Webhost environment.</param>
/// <param name="serializerOptions">Options for json serialization.</param> /// <param name="serializerOptions">Options for JSON serialization.</param>
public void Configure(IApplicationBuilder app, IWebHostEnvironment env, JsonSerializerOptions serializerOptions) public void Configure(IApplicationBuilder app, IWebHostEnvironment env, JsonSerializerOptions serializerOptions)
{ {
if (env.IsDevelopment()) if (env.IsDevelopment())

View File

@ -33,7 +33,7 @@ The gRPC client sample shows how to make Dapr calls to publish events, save stat
### Invoke Actor method without Remoting over Http. ### Invoke Actor method without Remoting over Http.
You can invoke Actor methods without remoting (directly over http), if Actor method accepts at-most one argument. You can invoke Actor methods without remoting (directly over http), if Actor method accepts at-most one argument.
Actor runtime will deserialize the incoming request body from client and use it as method argument to invoke the actor method. Actor runtime will deserialize the incoming request body from client and use it as method argument to invoke the actor method.
When making non-remoting calls Actor method arguments and return types are serialized, deserialized as json. When making non-remoting calls Actor method arguments and return types are serialized, deserialized as JSON.
**Save Data** **Save Data**

View File

@ -70,7 +70,7 @@ namespace Dapr.Actors.Client
} }
/// <summary> /// <summary>
/// Invokes the specified method for the actor with argument. The argument will be serialized as json. /// Invokes the specified method for the actor with argument. The argument will be serialized as JSON.
/// </summary> /// </summary>
/// <typeparam name="T">Return type of method.</typeparam> /// <typeparam name="T">Return type of method.</typeparam>
/// <param name="method">Actor method name.</param> /// <param name="method">Actor method name.</param>
@ -90,7 +90,7 @@ namespace Dapr.Actors.Client
} }
/// <summary> /// <summary>
/// Invokes the specified method for the actor with argument. The argument will be serialized as json. /// Invokes the specified method for the actor with argument. The argument will be serialized as JSON.
/// </summary> /// </summary>
/// <param name="method">Actor method name.</param> /// <param name="method">Actor method name.</param>
/// <param name="data">Object argument for actor method.</param> /// <param name="data">Object argument for actor method.</param>

View File

@ -337,7 +337,7 @@ namespace Dapr.Actors
} }
/// <summary> /// <summary>
/// Sends an HTTP get request to Dapr and returns the result as raw json. /// Sends an HTTP get request to Dapr and returns the result as raw JSON.
/// </summary> /// </summary>
/// <param name="requestFunc">Func to create HttpRequest to send.</param> /// <param name="requestFunc">Func to create HttpRequest to send.</param>
/// <param name="relativeUri">The relative URI.</param> /// <param name="relativeUri">The relative URI.</param>

View File

@ -52,7 +52,7 @@ namespace Dapr.Actors
/// </summary> /// </summary>
/// <param name="actorType">Type of actor.</param> /// <param name="actorType">Type of actor.</param>
/// <param name="actorId">ActorId.</param> /// <param name="actorId">ActorId.</param>
/// <param name="data">Json data with state changes as per the Dapr spec for transaction state update.</param> /// <param name="data">JSON data with state changes as per the Dapr spec for transaction state update.</param>
/// <param name="cancellationToken">Cancels the operation.</param> /// <param name="cancellationToken">Cancels the operation.</param>
/// <returns>A task that represents the asynchronous operation.</returns> /// <returns>A task that represents the asynchronous operation.</returns>
Task SaveStateTransactionallyAsync(string actorType, string actorId, string data, CancellationToken cancellationToken = default); Task SaveStateTransactionallyAsync(string actorType, string actorId, string data, CancellationToken cancellationToken = default);
@ -82,7 +82,7 @@ namespace Dapr.Actors
/// <param name="actorType">Type of actor.</param> /// <param name="actorType">Type of actor.</param>
/// <param name="actorId">ActorId.</param> /// <param name="actorId">ActorId.</param>
/// <param name="reminderName">Name of reminder to register.</param> /// <param name="reminderName">Name of reminder to register.</param>
/// <param name="data">Json reminder data as per the Dapr spec.</param> /// <param name="data">JSON reminder data as per the Dapr spec.</param>
/// <param name="cancellationToken">Cancels the operation.</param> /// <param name="cancellationToken">Cancels the operation.</param>
/// <returns>A <see cref="Task"/> representing the result of the asynchronous operation.</returns> /// <returns>A <see cref="Task"/> representing the result of the asynchronous operation.</returns>
Task RegisterReminderAsync(string actorType, string actorId, string reminderName, string data, CancellationToken cancellationToken = default); Task RegisterReminderAsync(string actorType, string actorId, string reminderName, string data, CancellationToken cancellationToken = default);
@ -103,7 +103,7 @@ namespace Dapr.Actors
/// <param name="actorType">Type of actor.</param> /// <param name="actorType">Type of actor.</param>
/// <param name="actorId">ActorId.</param> /// <param name="actorId">ActorId.</param>
/// <param name="timerName">Name of timer to register.</param> /// <param name="timerName">Name of timer to register.</param>
/// <param name="data">Json reminder data as per the Dapr spec.</param> /// <param name="data">JSON reminder data as per the Dapr spec.</param>
/// <param name="cancellationToken">Cancels the operation.</param> /// <param name="cancellationToken">Cancels the operation.</param>
/// <returns>A <see cref="Task"/> representing the result of the asynchronous operation.</returns> /// <returns>A <see cref="Task"/> representing the result of the asynchronous operation.</returns>
Task RegisterTimerAsync(string actorType, string actorId, string timerName, string data, CancellationToken cancellationToken = default); Task RegisterTimerAsync(string actorType, string actorId, string timerName, string data, CancellationToken cancellationToken = default);

View File

@ -17,7 +17,7 @@ namespace Dapr.Actors
internal static class JsonReaderExtensions internal static class JsonReaderExtensions
{ {
/// <summary> /// <summary>
/// Moves the json reader token to next content. /// Moves the JSON reader token to next content.
/// </summary> /// </summary>
/// <param name="reader">The JsonReader.</param> /// <param name="reader">The JsonReader.</param>
public static void MoveToContent(this JsonReader reader) public static void MoveToContent(this JsonReader reader)
@ -96,7 +96,7 @@ namespace Dapr.Actors
{ {
if (reader.TokenType != JsonToken.PropertyName) if (reader.TokenType != JsonToken.PropertyName)
{ {
throw new JsonReaderException($"Error reading Property NameDescription from Json, unexpected JsonToken {reader.TokenType}."); throw new JsonReaderException($"Error reading Property NameDescription from JSON, unexpected JsonToken {reader.TokenType}.");
} }
var propName = reader.Value?.ToString(); var propName = reader.Value?.ToString();
@ -107,7 +107,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Gets the value of current JSON token as <see cref="string"/> and moves to next token". /// Gets the value of current JSON token as <see cref="string"/> and moves to next token".
/// </summary> /// </summary>
/// <param name="reader">Json reader.</param> /// <param name="reader">JSON reader.</param>
/// <returns>A <see cref="string" />.</returns> /// <returns>A <see cref="string" />.</returns>
public static string ReadValueAsString(this JsonReader reader) public static string ReadValueAsString(this JsonReader reader)
{ {
@ -141,7 +141,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Gets the value of current JSON token as <see cref="bool"/> and moves to next token". /// Gets the value of current JSON token as <see cref="bool"/> and moves to next token".
/// </summary> /// </summary>
/// <param name="reader">Json reader.</param> /// <param name="reader">JSON reader.</param>
/// <returns>A <see cref="bool" />.</returns> /// <returns>A <see cref="bool" />.</returns>
public static bool? ReadValueAsBool(this JsonReader reader) public static bool? ReadValueAsBool(this JsonReader reader)
{ {
@ -169,7 +169,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Gets the value of current JSON token as <see cref="int"/> and moves to next token". /// Gets the value of current JSON token as <see cref="int"/> and moves to next token".
/// </summary> /// </summary>
/// <param name="reader">Json reader.</param> /// <param name="reader">JSON reader.</param>
/// <returns>A <see cref="int" />.</returns> /// <returns>A <see cref="int" />.</returns>
public static int? ReadValueAsInt(this JsonReader reader) public static int? ReadValueAsInt(this JsonReader reader)
{ {
@ -200,11 +200,11 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Gets the value of current JSON token as <see cref="byte"/> and moves to next token". /// Gets the value of current JSON token as <see cref="byte"/> and moves to next token".
/// </summary> /// </summary>
/// <param name="reader">Json reader.</param> /// <param name="reader">JSON reader.</param>
/// <returns>A <see cref="int" />.</returns> /// <returns>A <see cref="int" />.</returns>
public static byte ReadValueAsByte(this JsonReader reader) public static byte ReadValueAsByte(this JsonReader reader)
{ {
// byte is int in json. // byte is int in JSON.
int value; int value;
switch (reader.TokenType) switch (reader.TokenType)
@ -228,7 +228,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Gets the value of current JSON token as <see cref="long"/> and moves to next token". /// Gets the value of current JSON token as <see cref="long"/> and moves to next token".
/// </summary> /// </summary>
/// <param name="reader">Json reader.</param> /// <param name="reader">JSON reader.</param>
/// <returns>A <see cref="long" />.</returns> /// <returns>A <see cref="long" />.</returns>
public static long? ReadValueAsLong(this JsonReader reader) public static long? ReadValueAsLong(this JsonReader reader)
{ {
@ -256,7 +256,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Gets the value of current JSON token as <see cref="double"/> and moves to next token". /// Gets the value of current JSON token as <see cref="double"/> and moves to next token".
/// </summary> /// </summary>
/// <param name="reader">Json reader.</param> /// <param name="reader">JSON reader.</param>
/// <returns>A <see cref="double" />.</returns> /// <returns>A <see cref="double" />.</returns>
public static double? ReadValueAsDouble(this JsonReader reader) public static double? ReadValueAsDouble(this JsonReader reader)
{ {
@ -284,7 +284,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Gets the value of current JSON token as <see cref="System.DateTime"/> and moves to next token". /// Gets the value of current JSON token as <see cref="System.DateTime"/> and moves to next token".
/// </summary> /// </summary>
/// <param name="reader">Json reader.</param> /// <param name="reader">JSON reader.</param>
/// <returns>A <see cref="System.DateTime" />.</returns> /// <returns>A <see cref="System.DateTime" />.</returns>
public static DateTime? ReadValueAsDateTimeISO8601Format(this JsonReader reader) public static DateTime? ReadValueAsDateTimeISO8601Format(this JsonReader reader)
{ {
@ -334,7 +334,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Gets the value of current JSON token as <see cref="System.TimeSpan"/> and moves to next token". /// Gets the value of current JSON token as <see cref="System.TimeSpan"/> and moves to next token".
/// </summary> /// </summary>
/// <param name="reader">Json reader.</param> /// <param name="reader">JSON reader.</param>
/// <returns>A <see cref="System.TimeSpan" />.</returns> /// <returns>A <see cref="System.TimeSpan" />.</returns>
public static TimeSpan? ReadValueAsTimeSpanISO8601Format(this JsonReader reader) public static TimeSpan? ReadValueAsTimeSpanISO8601Format(this JsonReader reader)
{ {
@ -382,7 +382,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Gets the value of current JSON token as <see cref="System.TimeSpan"/> and moves to next token". /// Gets the value of current JSON token as <see cref="System.TimeSpan"/> and moves to next token".
/// </summary> /// </summary>
/// <param name="reader">Json reader.</param> /// <param name="reader">JSON reader.</param>
/// <returns>A <see cref="System.TimeSpan" />.</returns> /// <returns>A <see cref="System.TimeSpan" />.</returns>
public static TimeSpan? ReadValueAsTimeSpanDaprFormat(this JsonReader reader) public static TimeSpan? ReadValueAsTimeSpanDaprFormat(this JsonReader reader)
{ {
@ -447,7 +447,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Gets the value of current JSON token as <see cref="System.Guid"/> and moves to next token". /// Gets the value of current JSON token as <see cref="System.Guid"/> and moves to next token".
/// </summary> /// </summary>
/// <param name="reader">Json reader.</param> /// <param name="reader">JSON reader.</param>
/// <returns>A <see cref="System.Guid" />.</returns> /// <returns>A <see cref="System.Guid" />.</returns>
public static Guid? ReadValueAsGuid(this JsonReader reader) public static Guid? ReadValueAsGuid(this JsonReader reader)
{ {
@ -472,7 +472,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Skips a property value. /// Skips a property value.
/// </summary> /// </summary>
/// <param name="reader">Json reader.</param> /// <param name="reader">JSON reader.</param>
public static void SkipPropertyValue(this JsonReader reader) public static void SkipPropertyValue(this JsonReader reader)
{ {
if (reader.TokenType.Equals(JsonToken.StartObject) || reader.TokenType.Equals(JsonToken.StartArray)) if (reader.TokenType.Equals(JsonToken.StartObject) || reader.TokenType.Equals(JsonToken.StartArray))
@ -484,7 +484,7 @@ namespace Dapr.Actors
} }
/// <summary> /// <summary>
/// Reads a json array. /// Reads a JSON array.
/// </summary> /// </summary>
/// <typeparam name="T">Type of list elements.</typeparam> /// <typeparam name="T">Type of list elements.</typeparam>
/// <param name="reader">The JsonReader object.</param> /// <param name="reader">The JsonReader object.</param>
@ -520,7 +520,7 @@ namespace Dapr.Actors
} }
/// <summary> /// <summary>
/// Reads a Dictionary from json. /// Reads a Dictionary from JSON.
/// </summary> /// </summary>
/// <typeparam name="T">Type of Dictionary values.</typeparam> /// <typeparam name="T">Type of Dictionary values.</typeparam>
/// <param name="reader">The JsonReader object.</param> /// <param name="reader">The JsonReader object.</param>
@ -558,13 +558,13 @@ namespace Dapr.Actors
} }
/// <summary> /// <summary>
/// Deserializes Json representing of type T. /// Deserializes JSON representing of type T.
/// </summary> /// </summary>
/// <typeparam name="T">Type to deserialize into.</typeparam> /// <typeparam name="T">Type to deserialize into.</typeparam>
/// <param name="reader">Json Reader.</param> /// <param name="reader">JSON reader.</param>
/// <param name="getFromJsonPropertiesFunc">Delegate to parse json properties for type T.</param> /// <param name="getFromJsonPropertiesFunc">Delegate to parse JSON properties for type T.</param>
/// <returns>Deserialized object of type T. returns default(T) if Json Token represented by reader is null /// <returns>Deserialized object of type T. returns default(T) if JSON Token represented by reader is null
/// OR its an empty Json.</returns> /// OR its an empty JSON.</returns>
public static T Deserialize<T>(this JsonReader reader, Func<JsonReader, T> getFromJsonPropertiesFunc) public static T Deserialize<T>(this JsonReader reader, Func<JsonReader, T> getFromJsonPropertiesFunc)
{ {
var obj = default(T); var obj = default(T);
@ -583,7 +583,7 @@ namespace Dapr.Actors
return obj; return obj;
} }
// handle Empty Json. // handle Empty JSON.
reader.ReadStartObject(); reader.ReadStartObject();
if (reader.TokenType.Equals(JsonToken.EndObject)) if (reader.TokenType.Equals(JsonToken.EndObject))
{ {
@ -591,7 +591,7 @@ namespace Dapr.Actors
return obj; return obj;
} }
// not empty json, get value by reading properties. // not empty JSON, get value by reading properties.
obj = getFromJsonPropertiesFunc.Invoke(reader); obj = getFromJsonPropertiesFunc.Invoke(reader);
reader.ReadEndObject(); reader.ReadEndObject();
return obj; return obj;

View File

@ -18,7 +18,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Writes a DateTime value in ISO8601 format. /// Writes a DateTime value in ISO8601 format.
/// </summary> /// </summary>
/// <param name="writer">Json writer.</param> /// <param name="writer">JSON writer.</param>
/// <param name="value">Value to write.</param> /// <param name="value">Value to write.</param>
public static void WriteDateTimeValueISO8601Format(this JsonWriter writer, DateTime? value) public static void WriteDateTimeValueISO8601Format(this JsonWriter writer, DateTime? value)
{ {
@ -36,7 +36,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Writes a TimeSpan value in ISO8601 format. /// Writes a TimeSpan value in ISO8601 format.
/// </summary> /// </summary>
/// <param name="writer">Json writer.</param> /// <param name="writer">JSON writer.</param>
/// <param name="value">Value to write.</param> /// <param name="value">Value to write.</param>
public static void WriteTimeSpanValueISO8601Format(this JsonWriter writer, TimeSpan? value) public static void WriteTimeSpanValueISO8601Format(this JsonWriter writer, TimeSpan? value)
{ {
@ -54,7 +54,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Writes a TimeSpan value in format expected by Dapr. /// Writes a TimeSpan value in format expected by Dapr.
/// </summary> /// </summary>
/// <param name="writer">Json writer.</param> /// <param name="writer">JSON writer.</param>
/// <param name="value">Value to write.</param> /// <param name="value">Value to write.</param>
public static void WriteTimeSpanValueDaprFormat(this JsonWriter writer, TimeSpan? value) public static void WriteTimeSpanValueDaprFormat(this JsonWriter writer, TimeSpan? value)
{ {
@ -79,7 +79,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Writes a string value. /// Writes a string value.
/// </summary> /// </summary>
/// <param name="writer">Json writer.</param> /// <param name="writer">JSON writer.</param>
/// <param name="value">Value to write.</param> /// <param name="value">Value to write.</param>
public static void WriteStringValue(this JsonWriter writer, string value) public static void WriteStringValue(this JsonWriter writer, string value)
{ {
@ -96,7 +96,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Writes integer value. /// Writes integer value.
/// </summary> /// </summary>
/// <param name="writer">Json writer.</param> /// <param name="writer">JSON writer.</param>
/// <param name="value">Value to write.</param> /// <param name="value">Value to write.</param>
public static void WriteIntValue(this JsonWriter writer, int? value) public static void WriteIntValue(this JsonWriter writer, int? value)
{ {
@ -113,7 +113,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Writes long value. /// Writes long value.
/// </summary> /// </summary>
/// <param name="writer">Json writer.</param> /// <param name="writer">JSON writer.</param>
/// <param name="value">Value to write.</param> /// <param name="value">Value to write.</param>
public static void WriteLongValue(this JsonWriter writer, long? value) public static void WriteLongValue(this JsonWriter writer, long? value)
{ {
@ -130,7 +130,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Writes double value. /// Writes double value.
/// </summary> /// </summary>
/// <param name="writer">Json writer.</param> /// <param name="writer">JSON writer.</param>
/// <param name="value">Value to write.</param> /// <param name="value">Value to write.</param>
public static void WriteDoubleValue(this JsonWriter writer, double? value) public static void WriteDoubleValue(this JsonWriter writer, double? value)
{ {
@ -147,7 +147,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Writes boolean value. /// Writes boolean value.
/// </summary> /// </summary>
/// <param name="writer">Json writer.</param> /// <param name="writer">JSON writer.</param>
/// <param name="value">Value to write.</param> /// <param name="value">Value to write.</param>
public static void WriteBoolValue(this JsonWriter writer, bool? value) public static void WriteBoolValue(this JsonWriter writer, bool? value)
{ {
@ -164,7 +164,7 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Writes Guid value. /// Writes Guid value.
/// </summary> /// </summary>
/// <param name="writer">Json writer.</param> /// <param name="writer">JSON writer.</param>
/// <param name="value">Value to write.</param> /// <param name="value">Value to write.</param>
public static void WriteGuidValue(this JsonWriter writer, Guid? value) public static void WriteGuidValue(this JsonWriter writer, Guid? value)
{ {
@ -181,11 +181,11 @@ namespace Dapr.Actors
/// <summary> /// <summary>
/// Writes byte value. /// Writes byte value.
/// </summary> /// </summary>
/// <param name="writer">Json writer.</param> /// <param name="writer">JSON writer.</param>
/// <param name="value">Value to write.</param> /// <param name="value">Value to write.</param>
public static void WriteByteValue(this JsonWriter writer, byte value) public static void WriteByteValue(this JsonWriter writer, byte value)
{ {
// byte is int in json. // byte is int in JSON.
writer.WriteValue(value); writer.WriteValue(value);
} }
@ -211,7 +211,7 @@ namespace Dapr.Actors
} }
/// <summary> /// <summary>
/// Writes IEnumerable property as json array. /// Writes IEnumerable property as JSON array.
/// </summary> /// </summary>
/// <typeparam name="T">Type of IEnumerable elements.</typeparam> /// <typeparam name="T">Type of IEnumerable elements.</typeparam>
/// <param name="writer">JsonWriter instance.</param> /// <param name="writer">JsonWriter instance.</param>

View File

@ -112,7 +112,7 @@ namespace Dapr.Actors.Runtime
break; break;
case StateChangeKind.Add: case StateChangeKind.Add:
case StateChangeKind.Update: case StateChangeKind.Update:
// Currently Dapr runtime only support json serialization. // Currently Dapr runtime only support JSON serialization.
await ActorRuntime.DaprInteractor.SaveStateAsync(actorType, actorId, keyName, JsonConvert.SerializeObject(stateChange.Value), cancellationToken); await ActorRuntime.DaprInteractor.SaveStateAsync(actorType, actorId, keyName, JsonConvert.SerializeObject(stateChange.Value), cancellationToken);
break; break;
default: default: