changed ServerAssemblyName to ServerManagerType to optimize processing
This commit is contained in:
@ -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]
|
||||
|
@ -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(","))
|
||||
|
Reference in New Issue
Block a user