♻️ Extract the Storage service to DysonNetwork.Drive microservice
This commit is contained in:
@ -1,10 +1,11 @@
|
||||
using DysonNetwork.Common.Interfaces;
|
||||
using DysonNetwork.Sphere.Publisher;
|
||||
using DysonNetwork.Sphere.Storage;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace DysonNetwork.Sphere.Developer;
|
||||
|
||||
public class CustomAppService(AppDatabase db, FileReferenceService fileRefService)
|
||||
public class CustomAppService(AppDatabase db, IFileReferenceServiceClient fileRefService)
|
||||
{
|
||||
public async Task<CustomApp?> CreateAppAsync(
|
||||
Publisher.Publisher pub,
|
||||
@ -32,7 +33,7 @@ public class CustomAppService(AppDatabase db, FileReferenceService fileRefServic
|
||||
|
||||
// Create a new reference
|
||||
await fileRefService.CreateReferenceAsync(
|
||||
picture.Id,
|
||||
picture.Id.ToString(),
|
||||
"custom-apps.picture",
|
||||
app.ResourceIdentifier
|
||||
);
|
||||
@ -101,9 +102,9 @@ public class CustomAppService(AppDatabase db, FileReferenceService fileRefServic
|
||||
|
||||
// Create a new reference
|
||||
await fileRefService.CreateReferenceAsync(
|
||||
picture.Id,
|
||||
picture.Id.ToString(),
|
||||
"custom-apps.picture",
|
||||
app.ResourceIdentifier
|
||||
app.ResourceIdentifier
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user