obsolete API
This commit is contained in:
parent
64b071d740
commit
b63947f34e
2 changed files with 2 additions and 9 deletions
|
|
@ -79,7 +79,7 @@ namespace cli {
|
||||||
async Task DoStream (Stream stream)
|
async Task DoStream (Stream stream)
|
||||||
{
|
{
|
||||||
_tokenSource = new CancellationTokenSource();
|
_tokenSource = new CancellationTokenSource();
|
||||||
var url = _cxSettings.NStreamingUrl + "/" + HttpUtility.UrlEncode(_destArg.Value);
|
var url = _cxSettings.StreamingUrl + "/" + HttpUtility.UrlEncode(_destArg.Value);
|
||||||
|
|
||||||
_logger.LogInformation("Connecting to " + url);
|
_logger.LogInformation("Connecting to " + url);
|
||||||
await _client.ConnectAsync(new Uri(url), _tokenSource.Token);
|
await _client.ConnectAsync(new Uri(url), _tokenSource.Token);
|
||||||
|
|
|
||||||
|
|
@ -36,17 +36,10 @@ namespace cli
|
||||||
$"{SiteAccessSheme}://{Authority}:{Port}/token";
|
$"{SiteAccessSheme}://{Authority}:{Port}/token";
|
||||||
} }
|
} }
|
||||||
|
|
||||||
|
|
||||||
[NotMapped]
|
[NotMapped]
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public string StreamingUrl { get {
|
public string StreamingUrl { get {
|
||||||
return Port==0 ? $"ws://{Authority}"+Constants.LivePath:
|
|
||||||
$"ws://{Authority}:{Port}"+Constants.LivePath;
|
|
||||||
} }
|
|
||||||
|
|
||||||
|
|
||||||
[NotMapped]
|
|
||||||
[JsonIgnore]
|
|
||||||
public string NStreamingUrl { get {
|
|
||||||
return Port==0 ? $"ws://{Authority}"+Constants.StreamingPath:
|
return Port==0 ? $"ws://{Authority}"+Constants.StreamingPath:
|
||||||
$"ws://{Authority}:{Port}"+Constants.StreamingPath;
|
$"ws://{Authority}:{Port}"+Constants.StreamingPath;
|
||||||
} }
|
} }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue