Skip to content

Commit

Permalink
Method had an incorrect name
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloet committed Feb 8, 2020
1 parent 32ea5ab commit 8353a6f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Examples/Console/NetCore.Console.Client/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private static async void SendCustom()
dictionary.Add("Test", "This is a value");
dictionary.Add("Test2", "This is a second value");

await _client.SendMessageWithMetadataAsync("This is a message", dictionary);
await _client.SendMessageWithMetadataAsync(message, dictionary);

// await _client.SendCustomHeaderAsync(message, header, _compress, _encrypt);
}
Expand Down
7 changes: 6 additions & 1 deletion Examples/Console/NetCore.Console.Server/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,12 @@ private static async void SendCustom()
Write("Enter the message you want to send... ");
var message = System.Console.ReadLine();

// await _listener.SendCustomHeaderAsync(id, message, header, _compress, _encrypt, false);
var dictionary = new Dictionary<object, object>();

dictionary.Add("Test", "This is a value");
dictionary.Add("Test2", "This is a second value");

await _listener.SendMessageWithMetadataAsync(id, message, dictionary);
}

private static async void SendFile()
Expand Down
2 changes: 1 addition & 1 deletion SimpleSockets/Server/SimpleSocketListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ public void SendMessageWithMetadata(int id, object message, IDictionary<object,o
SendToSocket(builder.PayLoad, close, false, id);
}

public async Task SendCustomHeaderAsync(int id, object message, IDictionary<object,object> metadata, bool compress = false, bool encrypt = false, bool close = false)
public async Task SendMessageWithMetadataAsync(int id, object message, IDictionary<object,object> metadata, bool compress = false, bool encrypt = false, bool close = false)
{
if (ObjectSerializer == null)
throw new ArgumentNullException(nameof(ObjectSerializer));
Expand Down

0 comments on commit 8353a6f

Please sign in to comment.