apply Documentation Fix ...
This commit is contained in:
+20
-11
@@ -14,7 +14,7 @@ namespace xWebinarService.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>
|
||||||
@@ -33,7 +33,7 @@ namespace xWebinarService.DI
|
|||||||
//
|
//
|
||||||
#region Private ...
|
#region Private ...
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// a LogTag for XWebinarService ...
|
/// a LogTag for Service ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static string XLogTag = "XWebinarService";
|
private static string XLogTag = "XWebinarService";
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ namespace xWebinarService.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>
|
||||||
@@ -80,16 +80,26 @@ namespace xWebinarService.DI
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Check String Repository Exists ...
|
// Check Dependencies Exists ...
|
||||||
var isWebinarRepositoryExists = !services
|
var isDependenciesPassed = !services
|
||||||
.GetRegisteredService<IXWebinarRepository>()
|
.GetRegisteredService<IXWebinarSubscriberRepository>()
|
||||||
.IsNull() &&
|
|
||||||
!services.GetRegisteredService<IXWebinarSubscriberRepository>()
|
|
||||||
.IsNull();
|
.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;
|
throw exception;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -111,6 +121,5 @@ namespace xWebinarService.DI
|
|||||||
Log("AddWebinarService Succeed ...");
|
Log("AddWebinarService Succeed ...");
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user