a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
15 lines
399 B
C#
15 lines
399 B
C#
namespace System.Web.Mvc {
|
|
using System;
|
|
|
|
internal sealed class ControllerDescriptorCache : ReaderWriterCache<Type, ControllerDescriptor> {
|
|
|
|
public ControllerDescriptorCache() {
|
|
}
|
|
|
|
public ControllerDescriptor GetDescriptor(Type controllerType, Func<ControllerDescriptor> creator) {
|
|
return FetchOrCreateItem(controllerType, creator);
|
|
}
|
|
|
|
}
|
|
}
|