| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.Collections.Generic; |
| | | 6 | | using Azure.Core; |
| | | 7 | | using Azure.Core.Serialization; |
| | | 8 | | |
| | | 9 | | namespace Azure.Messaging.EventGrid |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// Options for configuring deserialization in EventGridConsumer. |
| | | 13 | | /// </summary> |
| | | 14 | | public class EventGridConsumerOptions |
| | | 15 | | { |
| | | 16 | | /// <summary> |
| | | 17 | | /// Serializer used to decode custom payloads from JSON. |
| | | 18 | | /// </summary> |
| | 48 | 19 | | public ObjectSerializer DataSerializer { get; set; } = new JsonObjectSerializer(); |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// Contains the mappings for custom event types. For example, |
| | | 23 | | /// "Contoso.Items.ItemReceived" mapping to type ContosoItemReceivedEventData. |
| | | 24 | | /// </summary> |
| | 0 | 25 | | public IDictionary<string, Type> CustomEventTypeMappings { get; private set; } = new Dictionary<string, Type>(); |
| | | 26 | | } |
| | | 27 | | } |