The login process is asynchronous, so it doesn't really fit in the (synchronous) 'WebsocketDataSync.init' fn. This also reduces some state in WebsocketDataSync, which is always a good thing, as it makes the ServiceContext member readonly, and allows it to assume the user is already logged in.
19 lines
532 B
C#
19 lines
532 B
C#
namespace Spark.Api.Server {
|
|
using CommandLine;
|
|
|
|
[Verb("run")]
|
|
public class RunOptions {
|
|
[Option("user", Default = CommonOptionMetadata.DEFAULT_USER)]
|
|
public string? user { get; set; }
|
|
|
|
[Option("password", Default = CommonOptionMetadata.DEFAULT_PASSWORD)]
|
|
public string? password { get; set; }
|
|
|
|
[Option(
|
|
"sparkd",
|
|
MetaValue = CommonOptionMetadata.SPARKD_META_VALUE,
|
|
HelpText = CommonOptionMetadata.SPARKD_HELP_TEXT)]
|
|
public string? sparkd { get; set; }
|
|
}
|
|
}
|