Skip to content

Commit

Permalink
Public ReflectionBasedTaskActivity.DataConverter setter (Azure#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
jviau authored Jan 7, 2021
1 parent bf365b4 commit 85d44de
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/DurableTask.Core/ReflectionBasedTaskActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ namespace DurableTask.Core
/// </summary>
public class ReflectionBasedTaskActivity : TaskActivity
{
private DataConverter dataConverter;

/// <summary>
/// Creates a new ReflectionBasedTaskActivity based on an activity object and method info
/// </summary>
Expand All @@ -41,7 +43,11 @@ public ReflectionBasedTaskActivity(object activityObject, MethodInfo methodInfo)
/// <summary>
/// The DataConverter to use for input and output serialization/deserialization
/// </summary>
public DataConverter DataConverter { get; private set; }
public DataConverter DataConverter
{
get => dataConverter;
set => dataConverter = value ?? throw new ArgumentNullException(nameof(value));
}

/// <summary>
/// The activity object to invoke methods on
Expand Down

0 comments on commit 85d44de

Please sign in to comment.