| 12345678910111213141516171819202122232425262728293031 |
- using CefSharp;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace UAS_Web.tool
- {
- class FilterManager
- {
- public static Dictionary<string, IResponseFilter> dataList = new Dictionary<string, IResponseFilter>();
- public static IResponseFilter CreateFilter(string guid)
- {
- lock (dataList)
- {
- var filter = new MessageFilter();
- dataList.Add(guid, filter);
- return filter;
- }
- }
- public static IResponseFilter GetFileter(string guid)
- {
- lock (dataList)
- {
- return dataList[guid];
- }
- }
- }
- }
|