@atlashub/smartstack-mcp 1.2.2 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,53 +1,53 @@
1
- using System;
2
- using System.Threading;
3
- using System.Threading.Tasks;
4
- using System.Collections.Generic;
5
- using Microsoft.Extensions.Logging;
6
-
7
- namespace {{namespace}};
8
-
9
- /// <summary>
10
- /// Interface for {{name}} service operations
11
- /// </summary>
12
- public interface I{{name}}Service
13
- {
14
- {{#each methods}}
15
- /// <summary>
16
- /// {{this}} operation
17
- /// </summary>
18
- Task<object> {{this}}(CancellationToken cancellationToken = default);
19
-
20
- {{/each}}
21
- }
22
-
23
- /// <summary>
24
- /// Implementation of {{name}} service
25
- /// </summary>
26
- public class {{name}}Service : I{{name}}Service
27
- {
28
- private readonly ILogger<{{name}}Service> _logger;
29
-
30
- public {{name}}Service(ILogger<{{name}}Service> logger)
31
- {
32
- _logger = logger ?? throw new ArgumentNullException(nameof(logger));
33
- }
34
-
35
- {{#each methods}}
36
- /// <inheritdoc />
37
- public async Task<object> {{this}}(CancellationToken cancellationToken = default)
38
- {
39
- _logger.LogInformation("Executing {{this}} in {{../name}}Service");
40
-
41
- // TODO: Implement {{this}} logic
42
- await Task.CompletedTask;
43
-
44
- throw new NotImplementedException("{{this}} is not yet implemented");
45
- }
46
-
47
- {{/each}}
48
- }
49
-
50
- // ============================================================================
51
- // Registration (add to DependencyInjection.cs)
52
- // ============================================================================
53
- // services.AddScoped<I{{name}}Service, {{name}}Service>();
1
+ using System;
2
+ using System.Threading;
3
+ using System.Threading.Tasks;
4
+ using System.Collections.Generic;
5
+ using Microsoft.Extensions.Logging;
6
+
7
+ namespace {{namespace}};
8
+
9
+ /// <summary>
10
+ /// Interface for {{name}} service operations
11
+ /// </summary>
12
+ public interface I{{name}}Service
13
+ {
14
+ {{#each methods}}
15
+ /// <summary>
16
+ /// {{this}} operation
17
+ /// </summary>
18
+ Task<object> {{this}}(CancellationToken cancellationToken = default);
19
+
20
+ {{/each}}
21
+ }
22
+
23
+ /// <summary>
24
+ /// Implementation of {{name}} service
25
+ /// </summary>
26
+ public class {{name}}Service : I{{name}}Service
27
+ {
28
+ private readonly ILogger<{{name}}Service> _logger;
29
+
30
+ public {{name}}Service(ILogger<{{name}}Service> logger)
31
+ {
32
+ _logger = logger ?? throw new ArgumentNullException(nameof(logger));
33
+ }
34
+
35
+ {{#each methods}}
36
+ /// <inheritdoc />
37
+ public async Task<object> {{this}}(CancellationToken cancellationToken = default)
38
+ {
39
+ _logger.LogInformation("Executing {{this}} in {{../name}}Service");
40
+
41
+ // TODO: Implement {{this}} logic
42
+ await Task.CompletedTask;
43
+
44
+ throw new NotImplementedException("{{this}} is not yet implemented");
45
+ }
46
+
47
+ {{/each}}
48
+ }
49
+
50
+ // ============================================================================
51
+ // Registration (add to DependencyInjection.cs)
52
+ // ============================================================================
53
+ // services.AddScoped<I{{name}}Service, {{name}}Service>();