Beispiel #1
0
        public bool TryCreate(ClaimsPrincipal user, out AbstractAccessor accessor)
        {
            try
            {
                accessor = Create(user);
                return(true);
            }
            catch (Exception ex)
            {
                _logger.LogCritical(ex.Message);

                accessor = null;
                return(false);
            }
        }
Beispiel #2
0
 public void SetAccessor(AbstractAccessor accessor)
 {
     this.accessor = accessor;
     IsReadable    = accessor.CanRead;
     IsWritable    = accessor.CanWrite;
 }
Beispiel #3
0
 public MethodPropertyInfoASM2(Type entityType, String propertyName, MethodInfo getter, MethodInfo setter, AbstractAccessor accessor)
     : base(entityType, propertyName, getter, setter)
 {
     SetAccessor(accessor);
 }