/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Bots = new BotsOperations(this); Channels = new ChannelsOperations(this); Operations = new Operations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2017-12-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <Channel>("channelName")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <Channel>("channelName")); CustomInitialize(); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Channels = new ChannelsOperations(this); Domains = new DomainsOperations(this); DomainTopics = new DomainTopicsOperations(this); EventChannels = new EventChannelsOperations(this); EventSubscriptions = new EventSubscriptionsOperations(this); DomainTopicEventSubscriptions = new DomainTopicEventSubscriptionsOperations(this); TopicEventSubscriptions = new TopicEventSubscriptionsOperations(this); DomainEventSubscriptions = new DomainEventSubscriptionsOperations(this); SystemTopicEventSubscriptions = new SystemTopicEventSubscriptionsOperations(this); PartnerTopicEventSubscriptions = new PartnerTopicEventSubscriptionsOperations(this); Operations = new Operations(this); PartnerConfigurations = new PartnerConfigurationsOperations(this); PartnerDestinations = new PartnerDestinationsOperations(this); PartnerNamespaces = new PartnerNamespacesOperations(this); PartnerRegistrations = new PartnerRegistrationsOperations(this); PartnerTopics = new PartnerTopicsOperations(this); PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); PrivateLinkResources = new PrivateLinkResourcesOperations(this); SystemTopics = new SystemTopicsOperations(this); Topics = new TopicsOperations(this); ExtensionTopics = new ExtensionTopicsOperations(this); TopicTypes = new TopicTypesOperations(this); VerifiedPartners = new VerifiedPartnersOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2021-10-15-preview"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; SerializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <PartnerDestinationInfo>("endpointType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <PartnerDestinationInfo>("endpointType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <PartnerClientAuthentication>("clientAuthenticationType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <PartnerClientAuthentication>("clientAuthenticationType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <PartnerUpdateDestinationInfo>("endpointType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <PartnerUpdateDestinationInfo>("endpointType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <InputSchemaMapping>("inputSchemaMappingType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <InputSchemaMapping>("inputSchemaMappingType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <AdvancedFilter>("operatorType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <AdvancedFilter>("operatorType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <EventSubscriptionDestination>("endpointType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <EventSubscriptionDestination>("endpointType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <DeadLetterDestination>("endpointType")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <DeadLetterDestination>("endpointType")); SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter <DeliveryAttributeMapping>("type")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter <DeliveryAttributeMapping>("type")); CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); }