Skip to content

Commit 5915e6c

Browse files
committed
Refactor Worker class constructor documentation and standardize Dictionary type declaration in Program.cs
1 parent 79459a9 commit 5915e6c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/workerServiceDependencyInjection/Worker.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ public class Worker : BackgroundService
88
private readonly IKubernetes kubernetesClient;
99

1010
/// <summary>
11+
/// Initializes a new instance of the <see cref="Worker"/> class.
1112
/// Inject in the constructor the IKubernetes interface.
1213
/// </summary>
13-
/// <param name="logger"></param>
14-
/// <param name="kubernetesClient"></param>
14+
/// <param name="logger">The logger instance used for logging information.</param>
15+
/// <param name="kubernetesClient">The Kubernetes client used to interact with the Kubernetes API.</param>
1516
public Worker(ILogger<Worker> logger, IKubernetes kubernetesClient)
1617
{
1718
this.logger = logger;

examples/yaml/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ internal class Program
1010
{
1111
private static async Task Main(string[] args)
1212
{
13-
var typeMap = new Dictionary<String, Type>
13+
var typeMap = new Dictionary<string, Type>
1414
{
1515
{ "v1/Pod", typeof(V1Pod) },
1616
{ "v1/Service", typeof(V1Service) },

0 commit comments

Comments
 (0)