Apply Documentation Fix ...

This commit is contained in:
2025-12-07 16:12:16 +03:30
parent ce846b3f68
commit 91d7fbaed8
+19 -9
View File
@@ -3,14 +3,16 @@ using Microsoft.Extensions.DependencyInjection;
using xCommons.Extensions;
using xExceptions.Constants;
using xFileService.Interfaces;
using xFileService.Interfaces.Entities;
using xFileService.Providers;
using xStorageService.Interfaces;
namespace xFileService.DI
{
public static class XDIHelperExtension
{
/// <summary>
/// Register Module Provided Service on DI
/// Register Service ...
/// </summary>
/// <param name="services"></param>
/// <param name="config"></param>
@@ -43,7 +45,7 @@ namespace xFileService.DI
}
/// <summary>
/// Register Push Service ...
/// Register Service ...
/// </summary>
/// <param name="services"></param>
/// <param name="lifeTime"></param>
@@ -76,14 +78,26 @@ namespace xFileService.DI
}
//
// Check String Repository Exists ...
// Check Dependencies Exists ...
var isDependenciesPassed = !services
.GetRegisteredService<IXStorageProvider>()
.IsNull();
if (!isDependenciesPassed)
{
//
Log("AddFileService failed due Dependencies Issues, IXStorageProvider not provided ...");
throw exception;
}
//
// Check Repository Exists ...
var isRepositoryExists = !services
.GetRegisteredService<IXTagRepository>()
.GetRegisteredService<IXFileRepository>()
.IsNull();
if (!isRepositoryExists)
{
//
Log("AddFileService failed, IXTagRepository not provided ...");
Log("AddFileService failed, IXFileRepository not provided ...");
throw exception;
}
@@ -96,8 +110,4 @@ namespace xFileService.DI
}
#endregion
}
internal class IXTagRepository
{
}
}