2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-26 21:13:13 +00:00
This commit is contained in:
2019-08-07 05:18:27 +03:00
parent 2caae61910
commit 8d06fd05ad
74 changed files with 2302 additions and 1336 deletions

View File

@ -11,6 +11,7 @@ using Esiur.Misc;
using Esiur.Security.Permissions;
using Esiur.Resource.Template;
using Esiur.Security.Authority;
using Esiur.Proxy;
namespace Esiur.Resource
{
@ -265,7 +266,7 @@ namespace Esiur.Resource
/// <returns></returns>
public bool LoadProperty(string name, ulong age, DateTime modificationDate, object value)
{
var pt = template.GetPropertyTemplate(name);
var pt = template.GetPropertyTemplateByName(name);
if (pt == null)
return false;
@ -336,7 +337,7 @@ namespace Esiur.Resource
{
for (byte i = 0; i < properties.Length; i++)
{
var pt = this.template.GetPropertyTemplate(i);
var pt = this.template.GetPropertyTemplateByIndex(i);
if (pt != null)
{
var pv = properties[i];
@ -486,7 +487,7 @@ namespace Esiur.Resource
object value;
if (GetPropertyValue(propertyName, out value))
{
var pt = template.GetPropertyTemplate(propertyName);
var pt = template.GetPropertyTemplateByName(propertyName);
EmitModification(pt, value);
}
}
@ -515,7 +516,7 @@ namespace Esiur.Resource
#endif
*/
var pt = template.GetPropertyTemplate(name);
var pt = template.GetPropertyTemplateByName(name);
if (pt != null && pt.Info != null)
{
@ -712,7 +713,7 @@ namespace Esiur.Resource
}
// connect events
Type t = resource.GetType();
Type t = ResourceProxy.GetBaseType(resource);
#if NETSTANDARD1_5
var events = t.GetTypeInfo().GetEvents(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly);