Add AzureContentModeratorService to the services project. Add the services inside the Common folder.
Add the NuGet package for Microsoft.Azure.CognitiveServices.ContentModerator
Include moderation of images method into the AzureContentModeratorService, make the method receive a Stream
Create a new ContentModeratorModel, in the Models project, inside a new folder named AzureContentModerator
The model should only has two boolean properties
public class AzureContentModeratorService(ContentModeratorClient contentModeratorClient)
{
public async Task<ContentModeratorModel> AnalyzeImageAsync(Stream imageStream,
CancellationToken cancellationToken)
{
}
}