Skip to content

record ParameterShovelValue #269

@inikulshin

Description

@inikulshin

There is a significant improvement in https://github.com/EasyNetQ/EasyNetQ.Management.Client/blob/master/Source/EasyNetQ.Management.Client/Model/ParameterShovelValue.cs

But it's still not fully implements the spec (for AMQP 0.9.1 only).

    public record ParameterShovelValue(
        [property: JsonPropertyName("src-protocol")]
        [property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        string? SrcProtocol, // Either amqp091 or amqp10. If omitted it will default to amqp091.
        [property: JsonPropertyName("src-uri")]
        string SrcUri,
        [property: JsonPropertyName("src-queue")]
        [property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        string? SrcQueue,
        [property: JsonPropertyName("src-exchange")]
        [property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        string? SrcExchange,
        [property: JsonPropertyName("src-exchange-key")]
        [property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        string? SrcExchangeKey,

        [property: JsonPropertyName("src-delete-after")]
        [property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        string? SrcDeleteAfter,
        [property: JsonPropertyName("src-prefetch-count")]
        [property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        int? SrcPrefetchCount,

        [property: JsonPropertyName("dest-protocol")]
        [property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        string? DestProtocol, // Either amqp091 or amqp10. If omitted it will default to amqp091.
        [property: JsonPropertyName("dest-uri")]
        string DestUri,
        [property: JsonPropertyName("dest-queue")]
        [property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        string? DestQueue,
        [property: JsonPropertyName("dest-exchange")]
        [property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        string? DestExchange,
        [property: JsonPropertyName("dest-exchange-key")]
        [property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        string? DestExchangeKey,

        [property: JsonPropertyName("dest-add-forward-headers")]
        [property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        bool? DestAddForwardHeaders,
        [property: JsonPropertyName("dest-add-timestamp-header")]
        [property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        bool? DestAddTimestampHeader,

        [property: JsonPropertyName("ack-mode")]
        [property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        string? AckMode,
        [property: JsonPropertyName("reconnect-delay")]
        [property: JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
        int? ReconnectDelay
    );

I think, there should be another record for AMQP 1.0), but I have no implementation for it.

TODO: dest-publish-properties is still not supported

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions