Show / Hide Table of Contents

    Class ObfuscationConfiguration

    Configuration for obfuscation of different parts.

    Inheritance
    Object
    ObfuscationConfiguration
    HashingObfuscationConfiguration
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.Graph.Communications.Common.Telemetry.Obfuscation
    Assembly: Microsoft.Graph.Communications.Common.dll
    Syntax
    public class ObfuscationConfiguration

    Constructors

    ObfuscationConfiguration(IObfuscationEngine, IEnumerable<BaseFilter>, Boolean, ObfuscationMember[])

    Initializes a new instance of the ObfuscationConfiguration class.

    Declaration
    public ObfuscationConfiguration(IObfuscationEngine engine, IEnumerable<BaseFilter> filters = null, bool addOdataType = true, ObfuscationMember[] members = null)
    Parameters
    Type Name Description
    IObfuscationEngine engine

    The obfuscation engine.

    IEnumerable<BaseFilter> filters

    The filters.

    Boolean addOdataType

    If true, attach the @odata.type property, otherwise only attach this property if it's already present as a first class property.

    ObfuscationMember[] members

    The predefined set of obfuscation members. When specified the obfuscation serializer will cache the members and check the cache for the ObfuscationTag.

    ObfuscationConfiguration(IObfuscationEngine, IEnumerable<HeaderFilter>, IEnumerable<ContentDispositionFilter>, IEnumerable<ContentTypeFilter>, Boolean, ObfuscationMember[])

    Initializes a new instance of the ObfuscationConfiguration class.

    Declaration
    public ObfuscationConfiguration(IObfuscationEngine engine, IEnumerable<HeaderFilter> headerFilters, IEnumerable<ContentDispositionFilter> contentDispositionFilters, IEnumerable<ContentTypeFilter> contentTypeFilters, bool addOdataType = true, ObfuscationMember[] members = null)
    Parameters
    Type Name Description
    IObfuscationEngine engine

    The obfuscation engine.

    IEnumerable<HeaderFilter> headerFilters

    The header filters.

    IEnumerable<ContentDispositionFilter> contentDispositionFilters

    The content disposition filters.

    IEnumerable<ContentTypeFilter> contentTypeFilters

    The content type filters.

    Boolean addOdataType

    If true, attach the @odata.type property, otherwise only attach this property if it's already present as a first class property.

    ObfuscationMember[] members

    The predefined set of obfuscation members. When specified the obfuscation serializer will cache the members and check the cache for the ObfuscationTag.

    Properties

    ContentDispositionFilters

    Gets the content disposition filters.

    Declaration
    public IEnumerable<ContentDispositionFilter> ContentDispositionFilters { get; }
    Property Value
    Type Description
    IEnumerable<ContentDispositionFilter>

    ContentTypeFilters

    Gets the content type filters.

    Declaration
    public IEnumerable<ContentTypeFilter> ContentTypeFilters { get; }
    Property Value
    Type Description
    IEnumerable<ContentTypeFilter>

    DefaultContentDispositionFilters

    Gets the default content disposition filters.

    Declaration
    public static IEnumerable<ContentDispositionFilter> DefaultContentDispositionFilters { get; }
    Property Value
    Type Description
    IEnumerable<ContentDispositionFilter>

    DefaultContentTypeFilters

    Gets the default content type filters.

    Declaration
    public static IEnumerable<ContentTypeFilter> DefaultContentTypeFilters { get; }
    Property Value
    Type Description
    IEnumerable<ContentTypeFilter>

    DefaultHeaderFilters

    Gets the default header filters. Transfer-Encoding: (redacted) OData-Version: (redacted) Duration: (redacted) Strict-Transport-Security: (redacted) Cache-Control: (redacted) Date: (redacted) Location: (redacted) x-ms-ags-diagnostic: (redacted) scenario-id: (redacted) request-id: (redacted) client-request-id: (redacted) X-Microsoft-Skype-Chain-ID: (redacted) X-Microsoft-Skype-Caller-Region: (redacted) X-Microsoft-Skype-Callee-Region: (redacted) X-Microsoft-Skype-Message-ID: (redacted) X-Microsoft-Skype-Original-Message-ID: (redacted)

    Declaration
    public static IEnumerable<HeaderFilter> DefaultHeaderFilters { get; }
    Property Value
    Type Description
    IEnumerable<HeaderFilter>

    DefaultUriFilters

    Gets the default header filters.

    Declaration
    public static IEnumerable<UriFilter> DefaultUriFilters { get; }
    Property Value
    Type Description
    IEnumerable<UriFilter>

    HeaderFilters

    Gets the header filters.

    Declaration
    public IEnumerable<HeaderFilter> HeaderFilters { get; }
    Property Value
    Type Description
    IEnumerable<HeaderFilter>

    ObfuscationEngine

    Gets the obfuscation engine.

    Declaration
    public IObfuscationEngine ObfuscationEngine { get; }
    Property Value
    Type Description
    IObfuscationEngine

    ObfuscationMembers

    Gets the obfuscation members. When specified the obfuscation serializer will cache the members and check the cache for the ObfuscationTag. This can be used to cache obfuscation attributes, but it can also be used in cases where original contracts are not redily available (such as in SDK).

    Declaration
    public ObfuscationMember[] ObfuscationMembers { get; }
    Property Value
    Type Description
    ObfuscationMember[]

    ObfuscationSerializerSettings

    Gets the obfuscation serializer settings.

    Declaration
    public JsonSerializerSettings ObfuscationSerializerSettings { get; }
    Property Value
    Type Description
    Newtonsoft.Json.JsonSerializerSettings

    UriFilters

    Gets the URI filters.

    Declaration
    public IEnumerable<UriFilter> UriFilters { get; }
    Property Value
    Type Description
    IEnumerable<UriFilter>

    Extension Methods

    AdditionalDataExtensions.SetInAdditionalData(Object, String, Object)
    Extensions.Pin(Object)
    Extensions.ChangeType(Object, Type)
    Extensions.ChangeType<T>(Object)
    Extensions.TryDispose(Object, IGraphLogger)
    ReflectionUtils.GetPropertyUsingReflection(Object, String)
    ReflectionUtils.SetPropertyUsingReflection(Object, String, Object)
    Validator.IsNull(Object, String, String)
    Validator.NotNull<T>(T, String, String)
    Validator.Equals<T>(T, T, String, String)
    Validator.Equals<T, TE>(T, T, String)
    Validator.NotEquals<T>(T, T, String, String)
    HttpObfuscationHelpers.LogHeaderText(ObfuscationConfiguration, IEnumerable<KeyValuePair<String, IEnumerable<String>>>)
    HttpObfuscationHelpers.LogHeaderText(ObfuscationConfiguration, String, IEnumerable<String>)
    Back to top Copyright (c) Microsoft Corporation. All rights reserved.