apply Documentation Fix ...

This commit is contained in:
2025-12-07 16:12:00 +03:30
parent ec267b18c1
commit 44454e97ec
+20 -11
View File
@@ -14,7 +14,7 @@ namespace xWebinarService.DI
public static class XDIHelperExtension
{
/// <summary>
/// Register Module Provided Service on DI
/// Register Service ...
/// </summary>
/// <param name="services"></param>
/// <param name="config"></param>
@@ -33,7 +33,7 @@ namespace xWebinarService.DI
//
#region Private ...
/// <summary>
/// a LogTag for XWebinarService ...
/// a LogTag for Service ...
/// </summary>
private static string XLogTag = "XWebinarService";
@@ -47,7 +47,7 @@ namespace xWebinarService.DI
}
/// <summary>
/// Register Push Service ...
/// Register Service ...
/// </summary>
/// <param name="services"></param>
/// <param name="lifeTime"></param>
@@ -80,16 +80,26 @@ namespace xWebinarService.DI
}
//
// Check String Repository Exists ...
var isWebinarRepositoryExists = !services
.GetRegisteredService<IXWebinarRepository>()
.IsNull() &&
!services.GetRegisteredService<IXWebinarSubscriberRepository>()
// Check Dependencies Exists ...
var isDependenciesPassed = !services
.GetRegisteredService<IXWebinarSubscriberRepository>()
.IsNull();
if (!isWebinarRepositoryExists)
if (!isDependenciesPassed)
{
//
Log("AddWebinarService failed, IXWebinarRepository or IXWebinarSubscriberRepository not provided ...");
Log("AddFileService failed due Dependencies Issues, IXWebinarSubscriberRepository not provided ...");
throw exception;
}
//
// Check Repository Exists ...
var isRepositoryExists = !services
.GetRegisteredService<IXWebinarRepository>()
.IsNull();
if (!isRepositoryExists)
{
//
Log("AddWebinarService failed, IXWebinarRepository not provided ...");
throw exception;
}
@@ -111,6 +121,5 @@ namespace xWebinarService.DI
Log("AddWebinarService Succeed ...");
}
#endregion
}
}