changed ServerAssemblyName to ServerManagerType to optimize processing

This commit is contained in:
Shaun Walker
2020-04-16 22:27:12 -04:00
parent f5e4c1dd29
commit b9d70dd11a
12 changed files with 69 additions and 79 deletions

View File

@ -17,7 +17,7 @@ namespace Oqtane.Models
License = "";
Dependencies = "";
PermissionNames = "";
ServerAssemblyName = "";
ServerManagerType = "";
ControlTypeRoutes = "";
Template = "";
}
@ -53,7 +53,7 @@ namespace Oqtane.Models
[NotMapped]
public string PermissionNames { get; set; }
[NotMapped]
public string ServerAssemblyName { get; set; }
public string ServerManagerType { get; set; }
[NotMapped]
public string ControlTypeRoutes { get; set; }
[NotMapped]

View File

@ -74,6 +74,19 @@ namespace Oqtane.Shared
}
}
public static string GetAssemblyName(string fullyqualifiedtypename)
{
fullyqualifiedtypename = GetFullTypeName(fullyqualifiedtypename);
if (fullyqualifiedtypename.Contains(","))
{
return fullyqualifiedtypename.Substring(fullyqualifiedtypename.IndexOf(",") + 1).Trim();
}
else
{
return "";
}
}
public static string GetTypeNameLastSegment(string typename, int segment)
{
if (typename.Contains(","))