Skip to content

Commit

Permalink
Add error message for add not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
jviau committed May 12, 2020
1 parent 8948a94 commit f6977a9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="AddToObjectManagerNotSupported" xml:space="preserve">
<value>Add is not supported. Use the &lt;c&gt;ITaskHubWorkerBuilder&lt;/c&gt; instead.</value>
</data>
<data name="InnerActivityNull" xml:space="preserve">
<value>InnerActivity is null.</value>
</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

using System;
using DurableTask.Core;
using DurableTask.DependencyInjection.Properties;

namespace DurableTask.DependencyInjection
{
Expand All @@ -29,7 +30,7 @@ public WrapperObjectManager(ITaskObjectCollection<TObject> descriptors, Func<Typ
/// <inheritdoc />
public void Add(ObjectCreator<TObject> creator)
{
throw new NotSupportedException();
throw new NotSupportedException(Strings.AddToObjectManagerNotSupported);
}

/// <inheritdoc />
Expand Down

0 comments on commit f6977a9

Please sign in to comment.