Skip to content

Commit 5a284d1

Browse files
authored
Add Typescript example + Minor C# Fixes (#12)
1 parent ddcc092 commit 5a284d1

File tree

69 files changed

+3774
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+3774
-5
lines changed

application/backend-credit-card-enrollment/backend-c#/Common/Projection/MongoTransactionalProjectorOperator.cs renamed to application/backend-credit-card-enrollment/backend-c#/Common/Projection/MongoTransactionalProjectionOperator.cs

File renamed without changes.

application/backend-credit-card-enrollment/backend-c#/Common/Reaction/ReactionController.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ protected string ProcessReactionHttpRequest(AmbarHttpRequest ambarHttpRequest, R
4848
} catch (Exception ex) when (ex.Message?.StartsWith("Unknown event type") == true) {
4949
_postgresTransactionalEventStore.AbortDanglingTransactionsAndReturnConnectionToPool();
5050
_mongoTransactionalProjectionOperator.AbortDanglingTransactionsAndReturnSessionToPool();
51+
_logger.LogDebug(
52+
"Unknown event in reaction ignored for event name: {EventName} using handler: {HandlerName}",
53+
ambarHttpRequest.SerializedEvent.EventName,
54+
reactionHandler.GetType().Name
55+
);
5156
return AmbarResponseFactory.SuccessResponse();
5257
} catch (Exception ex) {
5358
_postgresTransactionalEventStore.AbortDanglingTransactionsAndReturnConnectionToPool();
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.idea
2+
node_modules
3+
dist
4+
*.log
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.idea
2+
node_modules/
3+
dist/
4+
*.log
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:18
2+
WORKDIR /app
3+
4+
COPY package*.json ./
5+
RUN npm install
6+
7+
COPY . .
8+
9+
RUN npm run build
10+
11+
EXPOSE 8080
12+
13+
CMD ["node", "dist/index.js"]

0 commit comments

Comments
 (0)