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.
Inherited Members
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. |