Skip to content

Commit 6c0c02e

Browse files
committed
Shorten service name to make build pass 🤷
1 parent b9e620d commit 6c0c02e

File tree

7 files changed

+129
-18
lines changed

7 files changed

+129
-18
lines changed

Tests/AwsLambdaFunction.Sqs.GroupB/AwsLambdaFunction.Sqs.GroupB.Api/SpecificChannelFunctions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,30 +38,30 @@ public SpecificChannelFunctions(ILogger<SpecificChannelFunctions> logger,
3838

3939
[LambdaFunction]
4040
[HttpApi(LambdaHttpMethod.Post, "/api/specific-channel/specific-channel/send-specific-topic-one")]
41-
public async Task<IHttpResult> SendSpecificTopicOneAsync([FromBody] PayloadDto dto)
41+
public async Task<IHttpResult> SpecificTopicOneAsync([FromBody] PayloadDto dto)
4242
{
4343
// AWSLambda0107: can parameter of type System.Threading.CancellationToken passing is not supported.
4444
var cancellationToken = CancellationToken.None;
4545
await _eventBus.FlushAllAsync(cancellationToken);
4646
return await ExceptionHandlerHelper.ExecuteAsync(async () =>
4747
{
4848
await _validationService.Handle(dto, cancellationToken);
49-
await _appService.SendSpecificTopicOne(dto, cancellationToken);
49+
await _appService.SpecificTopicOne(dto, cancellationToken);
5050
return HttpResults.Created();
5151
}, _logger);
5252
}
5353

5454
[LambdaFunction]
5555
[HttpApi(LambdaHttpMethod.Post, "/api/specific-channel/specific-channel/send-specific-topic-two")]
56-
public async Task<IHttpResult> SendSpecificTopicTwoAsync([FromBody] PayloadDto dto)
56+
public async Task<IHttpResult> SpecificTopicTwoAsync([FromBody] PayloadDto dto)
5757
{
5858
// AWSLambda0107: can parameter of type System.Threading.CancellationToken passing is not supported.
5959
var cancellationToken = CancellationToken.None;
6060
await _eventBus.FlushAllAsync(cancellationToken);
6161
return await ExceptionHandlerHelper.ExecuteAsync(async () =>
6262
{
6363
await _validationService.Handle(dto, cancellationToken);
64-
await _appService.SendSpecificTopicTwo(dto, cancellationToken);
64+
await _appService.SpecificTopicTwo(dto, cancellationToken);
6565
return HttpResults.Created();
6666
}, _logger);
6767
}
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
"AWSTemplateFormatVersion": "2010-09-09",
3+
"Transform": "AWS::Serverless-2016-10-31",
4+
"Description": "This template is partially managed by Amazon.Lambda.Annotations (v1.7.0.0).",
5+
"Resources": {
6+
"LambdaClientCreatedEventConsumerProcessAsyncGenerated": {
7+
"Type": "AWS::Serverless::Function",
8+
"Metadata": {
9+
"Tool": "Amazon.Lambda.Annotations"
10+
},
11+
"Properties": {
12+
"Runtime": "dotnet8",
13+
"CodeUri": ".",
14+
"MemorySize": 512,
15+
"Timeout": 30,
16+
"Policies": [
17+
"AWSLambdaBasicExecutionRole"
18+
],
19+
"PackageType": "Zip",
20+
"Handler": "AwsLambdaFunction.Sqs.GroupB.Api::Lambda.ClientCreatedEventConsumer_ProcessAsync_Generated::ProcessAsync"
21+
}
22+
},
23+
"LambdaCreateOrderCommandConsumerProcessAsyncGenerated": {
24+
"Type": "AWS::Serverless::Function",
25+
"Metadata": {
26+
"Tool": "Amazon.Lambda.Annotations"
27+
},
28+
"Properties": {
29+
"Runtime": "dotnet8",
30+
"CodeUri": ".",
31+
"MemorySize": 512,
32+
"Timeout": 30,
33+
"Policies": [
34+
"AWSLambdaBasicExecutionRole"
35+
],
36+
"PackageType": "Zip",
37+
"Handler": "AwsLambdaFunction.Sqs.GroupB.Api::Lambda.CreateOrderCommandConsumer_ProcessAsync_Generated::ProcessAsync"
38+
}
39+
},
40+
"LambdaSpecificChannelFunctionsSpecificTopicOneAsyncGenerated": {
41+
"Type": "AWS::Serverless::Function",
42+
"Metadata": {
43+
"Tool": "Amazon.Lambda.Annotations",
44+
"SyncedEvents": [
45+
"RootPost"
46+
],
47+
"SyncedEventProperties": {
48+
"RootPost": [
49+
"Path",
50+
"Method"
51+
]
52+
}
53+
},
54+
"Properties": {
55+
"Runtime": "dotnet8",
56+
"CodeUri": ".",
57+
"MemorySize": 512,
58+
"Timeout": 30,
59+
"Policies": [
60+
"AWSLambdaBasicExecutionRole"
61+
],
62+
"PackageType": "Zip",
63+
"Handler": "AwsLambdaFunction.Sqs.GroupB.Api::Lambda.SpecificChannelFunctions_SpecificTopicOneAsync_Generated::SpecificTopicOneAsync",
64+
"Events": {
65+
"RootPost": {
66+
"Type": "HttpApi",
67+
"Properties": {
68+
"Path": "/api/specific-channel/specific-channel/send-specific-topic-one",
69+
"Method": "POST"
70+
}
71+
}
72+
}
73+
}
74+
},
75+
"LambdaSpecificChannelFunctionsSpecificTopicTwoAsyncGenerated": {
76+
"Type": "AWS::Serverless::Function",
77+
"Metadata": {
78+
"Tool": "Amazon.Lambda.Annotations",
79+
"SyncedEvents": [
80+
"RootPost"
81+
],
82+
"SyncedEventProperties": {
83+
"RootPost": [
84+
"Path",
85+
"Method"
86+
]
87+
}
88+
},
89+
"Properties": {
90+
"Runtime": "dotnet8",
91+
"CodeUri": ".",
92+
"MemorySize": 512,
93+
"Timeout": 30,
94+
"Policies": [
95+
"AWSLambdaBasicExecutionRole"
96+
],
97+
"PackageType": "Zip",
98+
"Handler": "AwsLambdaFunction.Sqs.GroupB.Api::Lambda.SpecificChannelFunctions_SpecificTopicTwoAsync_Generated::SpecificTopicTwoAsync",
99+
"Events": {
100+
"RootPost": {
101+
"Type": "HttpApi",
102+
"Properties": {
103+
"Path": "/api/specific-channel/specific-channel/send-specific-topic-two",
104+
"Method": "POST"
105+
}
106+
}
107+
}
108+
}
109+
}
110+
}
111+
}

Tests/AwsLambdaFunction.Sqs.GroupB/AwsLambdaFunction.Sqs.GroupB.Application/Implementation/SpecificChannelService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public SpecificChannelService(IEventBus eventBus)
2424
}
2525

2626
[IntentManaged(Mode.Fully, Body = Mode.Fully)]
27-
public async Task SendSpecificTopicOne(PayloadDto dto, CancellationToken cancellationToken = default)
27+
public async Task SpecificTopicOne(PayloadDto dto, CancellationToken cancellationToken = default)
2828
{
2929
_eventBus.Publish(new SpecificTopicOneMessageEvent
3030
{
@@ -33,7 +33,7 @@ public async Task SendSpecificTopicOne(PayloadDto dto, CancellationToken cancell
3333
}
3434

3535
[IntentManaged(Mode.Fully, Body = Mode.Fully)]
36-
public async Task SendSpecificTopicTwo(PayloadDto dto, CancellationToken cancellationToken = default)
36+
public async Task SpecificTopicTwo(PayloadDto dto, CancellationToken cancellationToken = default)
3737
{
3838
_eventBus.Send(new SpecificTopicTwoMessage
3939
{

Tests/AwsLambdaFunction.Sqs.GroupB/AwsLambdaFunction.Sqs.GroupB.Application/Interfaces/ISpecificChannelService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace AwsLambdaFunction.Sqs.GroupB.Application.Interfaces
99
{
1010
public interface ISpecificChannelService
1111
{
12-
Task SendSpecificTopicOne(PayloadDto dto, CancellationToken cancellationToken = default);
13-
Task SendSpecificTopicTwo(PayloadDto dto, CancellationToken cancellationToken = default);
12+
Task SpecificTopicOne(PayloadDto dto, CancellationToken cancellationToken = default);
13+
Task SpecificTopicTwo(PayloadDto dto, CancellationToken cancellationToken = default);
1414
}
1515
}

Tests/AwsLambdaFunction.Sqs.GroupB/Intent.Metadata/Services/AwsLambdaFunction.Sqs.GroupB.Services/Associations/Publish Integration Event/SendSpecificTopicOne_to_SpecificTopicOneMessage__djvnhxd7.xml renamed to Tests/AwsLambdaFunction.Sqs.GroupB/Intent.Metadata/Services/AwsLambdaFunction.Sqs.GroupB.Services/Associations/Publish Integration Event/SpecificTopicOne_to_SpecificTopicOneMessage__djvnhxd7.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<association id="d9c57fb5-fecf-43e5-bc6a-aa6961466300">
33
<sourceEnd id="3cb056d7-c749-4f86-b52e-18af7b9fb371" type="Publish Integration Event Source End" typeId="eab91b3a-9903-40a2-90e8-ddb714883eab">
4-
<display>published by : SpecificChannelService.SendSpecificTopicOne</display>
4+
<display>published by : SpecificChannelService.SpecificTopicOne</display>
55
<order>0</order>
66
<typeReference id="aa44c2b5-4134-47b3-84b9-302832ac95c9">
77
<typeId>e3f59647-3087-4e2c-8640-f74e1a2a842c</typeId>
@@ -38,7 +38,7 @@
3838
<stereotypes />
3939
<mappings>
4040
<mapping type="Publish Message Mapping" typeId="7ff48a4c-ee8b-4e66-9dbb-c014eb0542fb">
41-
<source applicationId="dc693f0a-0527-436e-b5e7-896a1a85cc21" designerId="81104ae6-2bc5-4bae-b05a-f987b0372d81" elementId="e3f59647-3087-4e2c-8640-f74e1a2a842c" location="[AwsLambdaFunction.Sqs.GroupB].[Services].[SendSpecificTopicOne]" />
41+
<source applicationId="dc693f0a-0527-436e-b5e7-896a1a85cc21" designerId="81104ae6-2bc5-4bae-b05a-f987b0372d81" elementId="e3f59647-3087-4e2c-8640-f74e1a2a842c" location="[AwsLambdaFunction.Sqs.GroupB].[Services].[SpecificTopicOne]" />
4242
<target applicationId="dc693f0a-0527-436e-b5e7-896a1a85cc21" designerId="81104ae6-2bc5-4bae-b05a-f987b0372d81" elementId="a0e57598-a5e7-4152-b295-49341f1c10dc" location="[AwsLambdaFunction.Sqs.GroupB].[Services].[SpecificTopicOneMessage]" />
4343
<mappedEnds>
4444
<mappedEnd>
@@ -50,7 +50,7 @@
5050
<sources>
5151
<source identifier="dto.Data" mappingType="Data Mapping" mappingTypeId="d12e5102-45f3-4dde-8f63-f6a630e75771">
5252
<path>
53-
<target id="e3f59647-3087-4e2c-8640-f74e1a2a842c" name="SendSpecificTopicOne" type="element" specialization="Operation" specializationId="e030c97a-e066-40a7-8188-808c275df3cb" />
53+
<target id="e3f59647-3087-4e2c-8640-f74e1a2a842c" name="SpecificTopicOne" type="element" specialization="Operation" specializationId="e030c97a-e066-40a7-8188-808c275df3cb" />
5454
<target id="3067697d-089a-402f-bbbe-6653fa334288" name="dto" type="element" specialization="Parameter" specializationId="00208d20-469d-41cb-8501-768fd5eb796b" />
5555
<target id="b0c723b9-fcba-46e0-86a3-a1a595bde10a" name="Data" type="element" specialization="DTO-Field" specializationId="7baed1fd-469b-4980-8fd9-4cefb8331eb2" />
5656
</path>

Tests/AwsLambdaFunction.Sqs.GroupB/Intent.Metadata/Services/AwsLambdaFunction.Sqs.GroupB.Services/Associations/Send Integration Command/SendSpecificTopicTwo_to_SpecificTopicTwoMessage__d7nk554c.xml renamed to Tests/AwsLambdaFunction.Sqs.GroupB/Intent.Metadata/Services/AwsLambdaFunction.Sqs.GroupB.Services/Associations/Send Integration Command/SpecificTopicTwo_to_SpecificTopicTwoMessage__d7nk554c.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<association id="93d834b1-714d-4c77-8eea-7164f8c6564a">
33
<sourceEnd id="46f60389-7208-4bc9-90bd-1fe935b77dfe" type="Send Integration Command Source End" typeId="c5f4f98f-e464-48de-b202-c0724bacebb7">
4-
<display>sent by : SpecificChannelService.SendSpecificTopicTwo</display>
4+
<display>sent by : SpecificChannelService.SpecificTopicTwo</display>
55
<order>0</order>
66
<typeReference id="3909a777-7dde-49ad-a61f-11e078f70b29">
77
<typeId>5c419d2c-af23-4eda-9de9-6f45bbf1c6c9</typeId>
@@ -38,7 +38,7 @@
3838
<stereotypes />
3939
<mappings>
4040
<mapping type="Publish Message Mapping" typeId="7ff48a4c-ee8b-4e66-9dbb-c014eb0542fb">
41-
<source applicationId="dc693f0a-0527-436e-b5e7-896a1a85cc21" designerId="81104ae6-2bc5-4bae-b05a-f987b0372d81" elementId="5c419d2c-af23-4eda-9de9-6f45bbf1c6c9" location="[AwsLambdaFunction.Sqs.GroupB].[Services].[SendSpecificTopicTwo]" />
41+
<source applicationId="dc693f0a-0527-436e-b5e7-896a1a85cc21" designerId="81104ae6-2bc5-4bae-b05a-f987b0372d81" elementId="5c419d2c-af23-4eda-9de9-6f45bbf1c6c9" location="[AwsLambdaFunction.Sqs.GroupB].[Services].[SpecificTopicTwo]" />
4242
<target applicationId="dc693f0a-0527-436e-b5e7-896a1a85cc21" designerId="81104ae6-2bc5-4bae-b05a-f987b0372d81" elementId="b33d2b59-5994-413a-846a-96fc3de29482" location="[AwsLambdaFunction.Sqs.GroupB].[Services].[SpecificTopicTwoMessage]" />
4343
<mappedEnds>
4444
<mappedEnd>
@@ -50,7 +50,7 @@
5050
<sources>
5151
<source identifier="dto.Data" mappingType="Data Mapping" mappingTypeId="d12e5102-45f3-4dde-8f63-f6a630e75771">
5252
<path>
53-
<target id="5c419d2c-af23-4eda-9de9-6f45bbf1c6c9" name="SendSpecificTopicTwo" type="element" specialization="Operation" specializationId="e030c97a-e066-40a7-8188-808c275df3cb" />
53+
<target id="5c419d2c-af23-4eda-9de9-6f45bbf1c6c9" name="SpecificTopicTwo" type="element" specialization="Operation" specializationId="e030c97a-e066-40a7-8188-808c275df3cb" />
5454
<target id="87467322-f16b-44c7-b33d-f2954b6862b1" name="dto" type="element" specialization="Parameter" specializationId="00208d20-469d-41cb-8501-768fd5eb796b" />
5555
<target id="b0c723b9-fcba-46e0-86a3-a1a595bde10a" name="Data" type="element" specialization="DTO-Field" specializationId="7baed1fd-469b-4980-8fd9-4cefb8331eb2" />
5656
</path>

Tests/AwsLambdaFunction.Sqs.GroupB/Intent.Metadata/Services/AwsLambdaFunction.Sqs.GroupB.Services/Elements/Service/SpecificChannelService__b2c1hb74.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
<metadata />
2323
<childElements>
2424
<childElement id="e3f59647-3087-4e2c-8640-f74e1a2a842c" type="Operation" typeId="e030c97a-e066-40a7-8188-808c275df3cb">
25-
<name>SendSpecificTopicOne</name>
26-
<display>SendSpecificTopicOne(dto: PayloadDto): void</display>
25+
<name>SpecificTopicOne</name>
26+
<display>SpecificTopicOne(dto: PayloadDto): void</display>
2727
<isAbstract>false</isAbstract>
2828
<sort-children>by-type-then-manually</sort-children>
2929
<genericTypes />
@@ -96,8 +96,8 @@
9696
</childElements>
9797
</childElement>
9898
<childElement id="5c419d2c-af23-4eda-9de9-6f45bbf1c6c9" type="Operation" typeId="e030c97a-e066-40a7-8188-808c275df3cb">
99-
<name>SendSpecificTopicTwo</name>
100-
<display>SendSpecificTopicTwo(dto: PayloadDto): void</display>
99+
<name>SpecificTopicTwo</name>
100+
<display>SpecificTopicTwo(dto: PayloadDto): void</display>
101101
<isAbstract>false</isAbstract>
102102
<sort-children>by-type-then-manually</sort-children>
103103
<genericTypes />

0 commit comments

Comments
 (0)