mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
36 lines
778 B
C#
36 lines
778 B
C#
//
|
|
// System.Web.Configuration.HandlerFactoryConfiguration
|
|
//
|
|
// Author:
|
|
// Patrik Torstensson ([email protected])
|
|
//
|
|
using System.Collections;
|
|
|
|
namespace System.Web.Configuration {
|
|
[MonoTODO]
|
|
public class HandlerFactoryConfiguration {
|
|
static private ArrayList _items = new ArrayList();
|
|
|
|
static public void Add(string rtype, string path, string type) {
|
|
HandlerItem item = new HandlerItem(rtype, path, type);
|
|
|
|
_items.Add(item);
|
|
}
|
|
|
|
static public HandlerItem FindHandler(string type, string path) {
|
|
int pos = 0;
|
|
int count = _items.Count;
|
|
|
|
for (pos = 0; pos != count; pos++) {
|
|
if (((HandlerItem) _items[pos]).IsMatch(type, path))
|
|
return (HandlerItem) _items[pos];
|
|
}
|
|
|
|
return null;
|
|
}
|
|
|
|
public HandlerFactoryConfiguration() {
|
|
}
|
|
}
|
|
}
|