去除引用common.props
This commit is contained in:
@@ -1,38 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections.Concurrent;
|
||||
using JNPF.Common.Extension;
|
||||
using JNPF.DependencyInjection;
|
||||
using JNPF.VisualDev.Entitys;
|
||||
using JNPF.VisualDev.Interfaces;
|
||||
using Microsoft.AspNetCore.Mvc.Filters;
|
||||
|
||||
namespace JNPF.VisualDev
|
||||
{
|
||||
public class OverideVisualDevManager
|
||||
{
|
||||
private static ConcurrentDictionary<string, Type> actions = new ConcurrentDictionary<string, Type>();
|
||||
public OverideVisualDevManager()
|
||||
public class OverideVisualDevManager
|
||||
{
|
||||
}
|
||||
private static ConcurrentDictionary<string, Type> actions = new ConcurrentDictionary<string, Type>();
|
||||
public OverideVisualDevManager()
|
||||
{
|
||||
}
|
||||
|
||||
public static IOverideVisualDevService? GetOrDefault(string modelId)
|
||||
{
|
||||
var tp = actions.GetOrDefault(modelId);
|
||||
if (tp != null) { return (IOverideVisualDevService)App.GetService(tp); }
|
||||
return null;
|
||||
}
|
||||
public static IOverideVisualDevService? GetOrDefault(string modelId)
|
||||
{
|
||||
var tp = actions.GetOrDefault(modelId);
|
||||
if (tp != null) { return (IOverideVisualDevService)App.GetService(tp); }
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void Add(string modelId, Type overideVisualDev)
|
||||
{
|
||||
if (!actions.ContainsKey(modelId))
|
||||
{
|
||||
actions.TryAdd(modelId, overideVisualDev);
|
||||
}
|
||||
public static void Add(string modelId, Type overideVisualDev)
|
||||
{
|
||||
if (!actions.ContainsKey(modelId))
|
||||
{
|
||||
actions.TryAdd(modelId, overideVisualDev);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user