Skip to content

Commit

Permalink
Removed ITenantIdCommandStep interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnAbshire committed Nov 7, 2023
1 parent 37fc4f7 commit a69c91c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Client.UnitTests/DeploymentTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public async Task ShouldSetTenantIdAsExpected()
};

// when
await ZeebeClient.NewDeployCommand().AddTenantId("1234").AddResourceFile(_demoProcessPath).Send();
await ZeebeClient.NewDeployCommand().AddResourceFile(_demoProcessPath).AddTenantId("1234").Send();

// then
var actualRequest = TestService.Requests[typeof(DeployResourceRequest)][0];
Expand Down
10 changes: 9 additions & 1 deletion Client/Api/Commands/IDeployResourceCommandStep1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

namespace Zeebe.Client.Api.Commands
{
public interface IDeployResourceCommandStep1 : ITenantIdCommandStep<IDeployResourceCommandBuilderStep2>
public interface IDeployResourceCommandStep1
{
/// <summary>
/// Add the given resource to the deployment.
Expand Down Expand Up @@ -73,5 +73,13 @@ IDeployResourceCommandBuilderStep2 AddResourceStream(
public interface IDeployResourceCommandBuilderStep2 : IDeployResourceCommandStep1, IFinalCommandWithRetryStep<IDeployResourceResponse>
{
// the place for new optional parameters

/// <summary>
/// Set the tenantId for the resource.
/// </summary>
/// <param name="tenantId">the tenantId to associate to this resource</param>
/// <returns>The builder for this command. Call <see cref="IFinalCommandStep{T}.Send"/> to complete the command and send it
/// to the broker.</returns>
IDeployResourceCommandBuilderStep2 AddTenantId(string tenantId);
}
}
13 changes: 0 additions & 13 deletions Client/Api/Commands/ITenantIdCommandStep.cs

This file was deleted.

0 comments on commit a69c91c

Please sign in to comment.