private AnonymizeContentContext MakeAnonymizationContextFromType(string typeName) { var ci = _contentManager.New(typeName); var ctx = new AnonymizeContentContext(ci); _transactionManager.RequireNew(); return(ctx); }
private void Anonymize(AnonymizeContentContext context) { Process(context, (ctx, action) => { // Invoke Anonymizing handlers before anonymization GDPRHandlers.Invoke(handler => handler.Anonymizing(ctx), Logger); action(ctx); // Do any anonymization operation on the ContentItem object itself // Invoke Anonymized handlers after we are done. GDPRHandlers.Invoke(handler => handler.Anonymized(ctx), Logger); }); }