mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 09:13:02 +08:00
Refactor code.
This commit is contained in:
@@ -61,13 +61,7 @@ namespace MQTTnet.TestApp.NetCore
|
||||
|
||||
public class RandomPassword : IMqttClientCredentials
|
||||
{
|
||||
public string Password
|
||||
{
|
||||
get
|
||||
{
|
||||
return Guid.NewGuid().ToString(); // The random password.
|
||||
}
|
||||
}
|
||||
public string Password => Guid.NewGuid().ToString();
|
||||
|
||||
public string Username => "the_static_user";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user