public ExecutionResult Execute(Execution <ObjectGraphActivityArguments> execution) { int intValue = execution.Arguments.Outer.IntValue; string stringValue = execution.Arguments.Outer.StringValue; decimal decimalValue = execution.Arguments.Outer.DecimalValue; string[] names = execution.Arguments.Names; Console.WriteLine("TestActivity: Execute: {0}, {1}, {2}, [{3}]", intValue, stringValue, decimalValue, string.Join(",", names)); if (_intValue != intValue) { throw new ArgumentException("intValue"); } if (_stringValue != stringValue) { throw new ArgumentException("stringValue"); } if (_decimalValue != decimalValue) { throw new ArgumentException("dateTimeValue"); } TestLog log = new TestLogImpl(stringValue); return(execution.Completed(log)); }
public ExecutionResult Execute(Execution <TestArguments> execution) { Console.WriteLine("FaultyCompensateActivity: Execute: {0}", execution.Arguments.Value); TestLog log = new TestLogImpl(execution.Arguments.Value); return(execution.Completed(log)); }
public ExecutionResult Execute(Execution <TestArguments> execution) { Console.WriteLine("TestActivity: Execute: {0}", execution.Arguments.Value); TestLog log = new TestLogImpl(execution.Arguments.Value); return(execution.Completed(log, new { Value = "Hello, World!", NullValue = (string)null, })); }
public ExecutionResult Execute(Execution <TestArguments> execution) { Console.WriteLine("SecondTestActivity: Execute: {0}", execution.Arguments.Value); return(execution.Completed()); }