Skip to content

Commit

Permalink
Merge pull request #3805 from benlin1994/fix-dotnet-quickstart
Browse files Browse the repository at this point in the history
replace client with novu in dotnet quickstart
  • Loading branch information
unicodeveloper authored Jul 17, 2023
2 parents 56774f4 + 13c406a commit e6bac1c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/docs/overview/quickstart/get-started-with-dotnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ var payload = new EventTriggerDataDto()
Payload = onboardingMessage
};

var trigger = await client.Event.Trigger(payload);
var trigger = await novu.Event.Trigger(payload);

if (trigger.TriggerResponsePayloadDto.Acknowledged)
{
Expand Down Expand Up @@ -274,6 +274,7 @@ A topic can have multiple subscribers who will receive a notification whenever a

Copy and paste the following code into your app to create a topic:


```csharp
// Create Topic
var topicRequest = new TopicCreateDto
Expand All @@ -283,7 +284,8 @@ var topicRequest = new TopicCreateDto

};

var topic = await client.Topic.CreateTopicAsync(topicRequest);
var topic = await novu.Topic.CreateTopicAsync(topicRequest);



```
Expand All @@ -298,6 +300,7 @@ Before running the code, make sure you understand the following:
Copy and paste the following code into your app to add subscribers to a topic:

```csharp

// Add Subscriber to Topic
var topicKey = "frontend-users";
var subscriberList = new TopicSubscriberUpdateDto
Expand All @@ -309,7 +312,8 @@ var subscriberList = new TopicSubscriberUpdateDto
}
};

var result = await client.Topic.AddSubscriberAsync(topicKey, subscriberList);
var result = await novu.Topic.AddSubscriberAsync(topicKey, subscriberList);

```

## Sending a Notification to a Topic
Expand Down

0 comments on commit e6bac1c

Please sign in to comment.