Skip to content

Commit b09631f

Browse files
authored
Merge pull request #2 from socketlabs/feature/subaccounts
add subaccount and ippolid
2 parents 7555c57 + effd126 commit b09631f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/SocketLabs.EventWebhooks.Extensions/Controllers/ParsedMessagesController.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,16 @@ private async Task ProcessEvent(MessageParsedEvent webhookEvent)
7575
webhookEvent.DateTime = date;
7676
}
7777

78-
_logger.LogTrace("Begin processing parsed message for {ServerId}", webhookEvent.ServerId);
78+
_logger.LogTrace("Begin processing parsed message for ServerId: {ServerId} SubaccountId: {SubaccountId} IpPoolId: {IpPoolId}",
79+
webhookEvent.ServerId, webhookEvent.SubaccountId, webhookEvent.IpPoolId);
7980
await _parsedMessagesEventHandler.ProcessAsync(webhookEvent);
8081
}
8182

8283
private async Task ProcessEvent(ValidationEvent webhookEvent)
8384
{
8485
webhookEvent.Type = "Validation";
85-
_logger.LogTrace("Begin processing validation message for {ServerId}", webhookEvent.ServerId);
86+
_logger.LogTrace("Begin processing validation message for ServerId: {ServerId} SubaccountId: {SubaccountId} IpPoolId: {IpPoolId}",
87+
webhookEvent.ServerId, webhookEvent.SubaccountId, webhookEvent.IpPoolId);
8688
await _parsedMessagesEventHandler.ProcessAsync(webhookEvent);
8789
}
8890
}

src/SocketLabs.EventWebhooks.Extensions/Models/Events/WebhookEventBase.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public abstract class WebhookEventBase
2020
public string? MessageId { get; set; }
2121
public string? Address { get; set; }
2222
public int ServerId { get; set; }
23+
public int SubaccountId { get; set; }
24+
public int IpPoolId { get; set; }
2325
public string? SecretKey { get; set; }
2426
public Data? Data { get; set; }
2527
public string? WebhookEndpointName { get; set; }

0 commit comments

Comments
 (0)