From 91d7fbaed80b71a8c2901176382f1860ca0b76ba Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Sun, 7 Dec 2025 16:12:16 +0330 Subject: [PATCH] Apply Documentation Fix ... --- DI/XDIHelperExtension.cs | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/DI/XDIHelperExtension.cs b/DI/XDIHelperExtension.cs index d7a041f..e5b4646 100644 --- a/DI/XDIHelperExtension.cs +++ b/DI/XDIHelperExtension.cs @@ -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 { /// - /// Register Module Provided Service on DI + /// Register Service ... /// /// /// @@ -43,7 +45,7 @@ namespace xFileService.DI } /// - /// Register Push Service ... + /// Register Service ... /// /// /// @@ -76,14 +78,26 @@ namespace xFileService.DI } // - // Check String Repository Exists ... + // Check Dependencies Exists ... + var isDependenciesPassed = !services + .GetRegisteredService() + .IsNull(); + if (!isDependenciesPassed) + { + // + Log("AddFileService failed due Dependencies Issues, IXStorageProvider not provided ..."); + throw exception; + } + + // + // Check Repository Exists ... var isRepositoryExists = !services - .GetRegisteredService() + .GetRegisteredService() .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 - { - } } \ No newline at end of file