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 xCommons.Extensions;
using xExceptions.Constants; using xExceptions.Constants;
using xFileService.Interfaces; using xFileService.Interfaces;
using xFileService.Interfaces.Entities;
using xFileService.Providers; using xFileService.Providers;
using xStorageService.Interfaces;
namespace xFileService.DI namespace xFileService.DI
{ {
public static class XDIHelperExtension public static class XDIHelperExtension
{ {
/// <summary> /// <summary>
/// Register Module Provided Service on DI /// Register Service ...
/// </summary> /// </summary>
/// <param name="services"></param> /// <param name="services"></param>
/// <param name="config"></param> /// <param name="config"></param>
@@ -43,7 +45,7 @@ namespace xFileService.DI
} }
/// <summary> /// <summary>
/// Register Push Service ... /// Register Service ...
/// </summary> /// </summary>
/// <param name="services"></param> /// <param name="services"></param>
/// <param name="lifeTime"></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 var isRepositoryExists = !services
.GetRegisteredService<IXTagRepository>() .GetRegisteredService<IXFileRepository>()
.IsNull(); .IsNull();
if (!isRepositoryExists) if (!isRepositoryExists)
{ {
// //
Log("AddFileService failed, IXTagRepository not provided ..."); Log("AddFileService failed, IXFileRepository not provided ...");
throw exception; throw exception;
} }
@@ -96,8 +110,4 @@ namespace xFileService.DI
} }
#endregion #endregion
} }
internal class IXTagRepository
{
}
} }