mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-06-13 14:38:43 +00:00
a
This commit is contained in:
@@ -713,6 +713,11 @@ public class Warehouse
|
||||
}
|
||||
}
|
||||
|
||||
internal KeyList<TypeDefKind, KeyList<string , Type>> GetProxyTypesByDomain(string domain)
|
||||
{
|
||||
return _proxyTypeDefs[domain];
|
||||
}
|
||||
|
||||
public bool TryRegisterRemoteTypeDef(string domain, RemoteTypeDef typeDef)
|
||||
{
|
||||
lock (_typeDefsLock)
|
||||
@@ -843,6 +848,14 @@ public class Warehouse
|
||||
return _remoteTypeDefs[domain].Values.FirstOrDefault(x => x.Name == typeName);
|
||||
}
|
||||
|
||||
public TypeDef GetProxyTypeDef(string domain, string typeName, TypeDefKind? typeDefKind = null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(domain) || !_remoteTypeDefs.ContainsKey(domain))
|
||||
return null;
|
||||
sdcsdc
|
||||
return _remoteTypeDefs[domain].Values.FirstOrDefault(x => x.Name == typeName);
|
||||
}
|
||||
|
||||
//public TypeDef GetRemoteTypeDefByType(Type type)
|
||||
//{
|
||||
// var remoteAttr = type.GetCustomAttribute<RemoteAttribute>();
|
||||
|
||||
Reference in New Issue
Block a user