aspnetcore/test/WebSites/ApplicationModelWebSite/Conventions/ControllerLicenseConvention.cs

17 lines
669 B
C#

// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.Mvc.ApplicationModels;
namespace ApplicationModelWebSite
{
public class ControllerLicenseConvention : IControllerModelConvention
{
public void Apply(ControllerModel controller)
{
controller.Properties["license"] = "Copyright (c) .NET Foundation. All rights reserved." +
" Licensed under the Apache License, Version 2.0. See License.txt " +
"in the project root for license information.";
}
}
}