Show / Hide Table of Contents

    Class ObfuscationSerializer

    The obfuscation serializer can be used to serialize and de-serialize an obfuscation schema, as well as generate a schema from specified assemblies.

    Inheritance
    Object
    ObfuscationSerializer
    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 ObfuscationSerializer

    Constructors

    ObfuscationSerializer()

    Declaration
    public ObfuscationSerializer()

    Properties

    Members

    Gets or sets the members belonging to the class.

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

    Methods

    ExtractFromAssemblies(Assembly[])

    Extracts the obfuscation members from the specified assemblies.

    Declaration
    public ObfuscationMember[] ExtractFromAssemblies(params Assembly[] assemblies)
    Parameters
    Type Name Description
    Assembly[] assemblies

    The assemblies.

    Returns
    Type Description
    ObfuscationMember[]

    The list of ObfuscationMember stucts extracted from the specified assemblies.

    GenerateSchema(ObfuscationMember[])

    Generates the schema from the specified obfuscation members.

    Declaration
    public string GenerateSchema(params ObfuscationMember[] members)
    Parameters
    Type Name Description
    ObfuscationMember[] members

    The obfuscation classes.

    Returns
    Type Description
    String

    The schema associated with the specified classes.

    LoadFromSchema(String)

    Loads the obfuscations classes from the specified schema.

    Declaration
    public ObfuscationMember[] LoadFromSchema(string schema)
    Parameters
    Type Name Description
    String schema

    The schema.

    Returns
    Type Description
    ObfuscationMember[]

    The loaded obfuscation classes.

    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)
    Back to top Copyright (c) Microsoft Corporation. All rights reserved.