Skip to content

How does Microsoft.Extensions.Compliance.Redaction work #4735

Answered by noahfalk
bitbonk asked this question in Q&A
Discussion options

You must be logged in to vote

@geeknoid - Any updated docs or doc plans to call out here? Could you also double check my explanation below appears accurate?

Hi @bitbonk. As best I know the folks building the new Microsoft.Extensions.* libraries are planning to start with README files for each library that covers the basics and then broader documentation on learn.microsoft.com is a work in progress. In the case of redacting for logging I think you are probably looking for something like this:

  1. Define one or more attributes that derive from DataClassificationAttribute. For example:
[AttributeUsage(...)]
public class PersonalDataAttribute : DataClassificationAttribute
{
    public PersonalDataAttribute() : base("NameOfT…

Replies: 8 comments 13 replies

Comment options

You must be logged in to vote
2 replies
@bitbonk
Comment options

@geeknoid
Comment options

Answer selected by bitbonk
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@joperezr
Comment options

@joperezr
Comment options

@bitbonk
Comment options

@xakep139
Comment options

@xakep139
Comment options

Comment options

You must be logged in to vote
4 replies
@joperezr
Comment options

@geeknoid
Comment options

@bitbonk
Comment options

@bitbonk
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants