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