diff --git a/src/CounterInterceptor/Counts.cs b/src/CounterInterceptor/Counts.cs index fd0ef4d..2949e76 100644 --- a/src/CounterInterceptor/Counts.cs +++ b/src/CounterInterceptor/Counts.cs @@ -1,17 +1,6 @@ -public record Counts +namespace TemporalioSamples.CounterInterceptor; +public class Counts { - public Counts() - { - clientExecutions = 0; - clientQueries = 0; - clientSignals = 0; - workflowReplays = 0; - workflowSignals = 0; - workflowQueries = 0; - workflowChildExecutions = 0; - workflowActivityExecutions = 0; - } - private uint clientExecutions; private uint clientQueries; private uint clientSignals; diff --git a/src/CounterInterceptor/MyActivities.cs b/src/CounterInterceptor/MyActivities.cs index def2a20..d038093 100644 --- a/src/CounterInterceptor/MyActivities.cs +++ b/src/CounterInterceptor/MyActivities.cs @@ -7,11 +7,9 @@ public class MyActivities { [Activity] public string SayHello(string name, string title) => - "Hello " + title + " " + name; + $"Hello {title} {name}"; [Activity] - public string SayGoodBye(string name, string title) - { - return "Goodbye " + title + " " + name; - } + public string SayGoodBye(string name, string title) => + $"Goodby {title} {name}"; } \ No newline at end of file