public override void Initialize(Type controllerType) { if (_path == null && _pathResBaseName != null && _pathResKey != null) { _path = new ResourcePathMapping(controllerType.Assembly, _pathResBaseName, _pathResKey); Mappings.Add(_path); _pathResBaseName = null; _pathResKey = null; } base.Initialize(controllerType); if (Mappings.Count == 0) Mappings = null; }
public EntryControllerAttribute(string pathResourceAssembly, string pathResourceBaseName, string pathResourceKey) : this() { _path = new ResourcePathMapping(Assembly.Load(pathResourceAssembly), pathResourceBaseName, pathResourceKey); }