Skip to content

Commit

Permalink
Added constructor option to pull values from an IConfiguration
Browse files Browse the repository at this point in the history
Signed-off-by: Whit Waldo <[email protected]>
  • Loading branch information
WhitWaldo committed Dec 3, 2024
1 parent 4f5457d commit 606e326
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Dapr.Jobs/DaprJobsClientBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// ------------------------------------------------------------------------

using Dapr.Common;
using Microsoft.Extensions.Configuration;
using Autogenerated = Dapr.Client.Autogen.Grpc.v1;

namespace Dapr.Jobs;
Expand All @@ -21,6 +22,14 @@ namespace Dapr.Jobs;
/// </summary>
public sealed class DaprJobsClientBuilder : DaprGenericClientBuilder<DaprJobsClient>
{
/// <summary>
/// Used to initialize a new instance of the <see cref="DaprJobsClientBuilder"/>.
/// </summary>
/// <param name="configuration">An optional instance of <see cref="IConfiguration"/>.</param>
public DaprJobsClientBuilder(IConfiguration? configuration = null) : base(configuration)
{
}

/// <summary>
/// Builds the client instance from the properties of the builder.
/// </summary>
Expand Down

0 comments on commit 606e326

Please sign in to comment.