Skip to content

Commit 1347ba5

Browse files
Remove Async
Co-Authored-By: BillVolz <bill@socketlabs.com>
1 parent 3658f06 commit 1347ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Example Projects/dotNetCoreExample/Examples/Basic/BasicComplexExample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public SendResponse RunExample()
2828

2929
message.CustomHeaders.Add("x-mycustomheader", "I am a message header");
3030

31-
var attachment = message.Attachments.AddAsync("bus.png", MimeType.PNG, @".\examples\img\bus.png").Result;
31+
var attachment = message.Attachments.Add("bus.png", MimeType.PNG, @".\examples\img\bus.png");
3232
attachment.ContentId = "Bus";
3333

3434
return client.Send(message);

0 commit comments

Comments
 (0)