mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 22:17:22 +01:00
fix send ready message service probably
This commit is contained in:
parent
211ebeb953
commit
ff4ddef18d
1 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue