fix send ready message service probably
This commit is contained in:
@@ -23,16 +23,16 @@ public class ShardClientReadyMessageService : IClientReadyMessageService
|
|||||||
|
|
||||||
public void SendDownloadReady(string uid, Guid requestId)
|
public void SendDownloadReady(string uid, Guid requestId)
|
||||||
{
|
{
|
||||||
var mainUrl = _configurationService.GetValue<Uri>(nameof(StaticFilesServerConfiguration.MainFileServerAddress));
|
|
||||||
var path = MareFiles.MainSendReadyFullPath(mainUrl, uid, requestId);
|
|
||||||
using HttpRequestMessage msg = new()
|
|
||||||
{
|
|
||||||
RequestUri = path
|
|
||||||
};
|
|
||||||
msg.Headers.Authorization = new AuthenticationHeaderValue("Bearer", _tokenGenerator.Token);
|
|
||||||
|
|
||||||
_ = Task.Run(async () =>
|
_ = Task.Run(async () =>
|
||||||
{
|
{
|
||||||
|
var mainUrl = _configurationService.GetValue<Uri>(nameof(StaticFilesServerConfiguration.MainFileServerAddress));
|
||||||
|
var path = MareFiles.MainSendReadyFullPath(mainUrl, uid, requestId);
|
||||||
|
using HttpRequestMessage msg = new()
|
||||||
|
{
|
||||||
|
RequestUri = path
|
||||||
|
};
|
||||||
|
msg.Headers.Authorization = new AuthenticationHeaderValue("Bearer", _tokenGenerator.Token);
|
||||||
|
|
||||||
_logger.LogInformation("Sending Client Ready for {uid}:{requestId} to {path}", uid, requestId, path);
|
_logger.LogInformation("Sending Client Ready for {uid}:{requestId} to {path}", uid, requestId, path);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user