Ejemplo n.º 1
0
        private void DumpInputParameter(InputParameters parameterName)
        {
            VerifyInputParameter(parameterName);

            var parameter = ExecutionContext.InputParameters[parameterName.ToString()];

            LogHelper.DumpObject(parameterName.ToString(), parameter);
        }
Ejemplo n.º 2
0
 public void LogFields(Entity entity, params string[] fieldNames)
 {
     foreach (var fieldName in fieldNames)
     {
         if (entity.Contains(fieldName))
         {
             LogHelper.DumpObject(fieldName, entity[fieldName]);
         }
         else
         {
             Log("{0} not present in {1}", fieldName, entity.LogicalName);
         }
     }
 }
Ejemplo n.º 3
0
        public virtual void DumpSharedVariables()
        {
            if (ExecutionContext.SharedVariables != null)
            {
                var sb = new StringBuilder();

                foreach (var key in ExecutionContext.SharedVariables.Keys)
                {
                    var parameter = ExecutionContext.SharedVariables[key];

                    LogHelper.DumpObject(key, parameter);
                }
            }
        }
Ejemplo n.º 4
0
        private void DumpInputParameter(string parameterName)
        {
            var parameter = ExecutionContext.InputParameters[parameterName];

            LogHelper.DumpObject(parameterName, parameter);
        }
 public void DumpObject(string parameterName, object parameter)
 {
     LogHelper.DumpObject(parameterName, parameter);
 }