This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Mvc.Controllers; | |
using Microsoft.FeatureManagement; | |
using Microsoft.FeatureManagement.Mvc; | |
using Microsoft.OpenApi.Models; | |
using Swashbuckle.AspNetCore.SwaggerGen; | |
/// <summary>Checks the current Feature Management configuration and removes all paths with disabled features</summary> | |
public class SwaggerFeatureGateFilter : IDocumentFilter { | |
private readonly IFeatureManager _featureManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace Infra { | |
public class AuditableEntity { | |
public string CreatedBy { get; set; } = null!; //user name, could be id etc. | |
public DateTime Created { get; set; } | |
public string? LastModifiedBy { get; set; } //user name, could be id etc. |