Пример #1
0
 public override object Invoke(object instance, object[] inputs, out object[] outputs)
 {
     try
     {
         var result = DecoratedOperationInvoker.Invoke(instance, inputs, out outputs);
         return(result);
     }
     catch (Exception ex)
     {
         Log.Error(ex.Message);
         throw;
     }
 }
Пример #2
0
        public override object Invoke(object instance, object[] inputs, out object[] outputs)
        {
            var username = JwtCurrentUsername.FromToken;

            if (string.IsNullOrWhiteSpace(username))
            {
                throw new Exception("Es konnte kein Benutzername-Message-Header gefunden werden.");
            }

            Log.Emphasized($"Request von '{username}' at {DateTime.Now}");

            var result = DecoratedOperationInvoker.Invoke(instance, inputs, out outputs);

            JwtCurrentUsername.FromToken = null;
            return(result);
        }
Пример #3
0
        public override object Invoke(object instance, object[] inputs, out object[] outputs)
        {
            var result = DecoratedOperationInvoker.Invoke(instance, inputs, out outputs);

            return(result);
        }