Exemplo n.º 1
0
        internal Task SerializeSettingsAndRegisteredTypes(System.Buffers.IBufferWriter <byte> output)
        {
            using Utf8JsonWriter writer = new Utf8JsonWriter(output);
            writer.WriteStartObject();

            writer.WritePropertyName("entities");
            writer.WriteStartArray();

            foreach (var actorType in this.RegisteredActorTypes)
            {
                writer.WriteStringValue(actorType);
            }

            writer.WriteEndArray();

            if (this.actorSettings.ActorIdleTimeout != null)
            {
                writer.WriteString("actorIdleTimeout", ConverterUtils.ConvertTimeSpanValueInDaprFormat(this.actorSettings.ActorIdleTimeout));
            }

            if (this.actorSettings.ActorScanInterval != null)
            {
                writer.WriteString("actorScanInterval", ConverterUtils.ConvertTimeSpanValueInDaprFormat(this.actorSettings.ActorScanInterval));
            }

            if (this.actorSettings.DrainOngoingCallTimeout != null)
            {
                writer.WriteString("drainOngoingCallTimeout", ConverterUtils.ConvertTimeSpanValueInDaprFormat(this.actorSettings.DrainOngoingCallTimeout));
            }

            // default is false, don't write it if default
            if (this.actorSettings.DrainRebalancedActors != false)
            {
                writer.WriteBoolean("drainRebalancedActors", (this.actorSettings.DrainRebalancedActors));
            }

            writer.WriteEndObject();
            return(writer.FlushAsync());
        }
 public void Reset(System.Buffers.IBufferWriter <byte> bufferWriter)
 {
 }
 public Utf8JsonWriter(System.Buffers.IBufferWriter <byte> bufferWriter, System.Text.Json.JsonWriterOptions options = default(System.Text.Json.JsonWriterOptions))
 {
 }
Exemplo n.º 4
0
 public void WriteMessage(Microsoft.AspNetCore.SignalR.Protocol.HubMessage message, System.Buffers.IBufferWriter <byte> output)
 {
 }
Exemplo n.º 5
0
 public MessagePack.MessagePackWriter Clone(System.Buffers.IBufferWriter <byte> writer)
 {
     throw null;
 }
Exemplo n.º 6
0
 public static void Write <T>(this System.Buffers.IBufferWriter <T> bufferWriter, ReadOnlySpan <T> source)
 {
 }
Exemplo n.º 7
0
 public void Serialize(System.Buffers.IBufferWriter <byte> bufferWriter, JsonRpcMessage message)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 8
0
 public static void WriteResponse(Microsoft.AspNetCore.Http.Connections.NegotiationResponse response, System.Buffers.IBufferWriter <byte> output)
 {
 }
Exemplo n.º 9
0
 public Utf8JsonWriter(System.Buffers.IBufferWriter <byte> bufferWriter, System.Text.Json.JsonWriterState state = default(System.Text.Json.JsonWriterState))
 {
     throw null;
 }
Exemplo n.º 10
0
 public static void Write <T>(this System.Buffers.IBufferWriter <T> writer, System.ReadOnlySpan <T> value)
 {
 }
 public static void WriteResponseMessage(Microsoft.AspNetCore.SignalR.Protocol.HandshakeResponseMessage responseMessage, System.Buffers.IBufferWriter <byte> output)
 {
 }
Exemplo n.º 12
0
 public static void WriteRequestMessage(Microsoft.AspNetCore.SignalR.Protocol.HandshakeRequestMessage requestMessage, System.Buffers.IBufferWriter <System.Byte> output) => throw null;
Exemplo n.º 13
0
 public void Export(System.Buffers.IBufferWriter <byte> bufferWriter, Omnix.Base.BufferPool bufferPool)
 {
     Formatter.Serialize(new Omnix.Serialization.RocketPack.RocketPackWriter(bufferWriter, bufferPool), this, 0);
 }