aspnetcore/test/WebSites/ActivatorWebSite/Controllers/CannotBeActivatedController.cs

22 lines
529 B
C#

// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Mvc;
namespace ActivatorWebSite
{
public class CannotBeActivatedController
{
[Activate]
private FakeType Service { get; set; }
public IActionResult Index()
{
return new NoContentResult();
}
private sealed class FakeType
{
}
}
}