apply documentation fix ...
This commit is contained in:
@@ -11,7 +11,7 @@ namespace xStringService.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>
|
||||||
@@ -29,7 +29,7 @@ namespace xStringService.DI
|
|||||||
//
|
//
|
||||||
#region Private ...
|
#region Private ...
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// a LogTag for XStringService ...
|
/// a LogTag for Service ...
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static string XLogTag = "XStringService";
|
private static string XLogTag = "XStringService";
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ namespace xStringService.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,11 +76,11 @@ namespace xStringService.DI
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Check String Repository Exists ...
|
// Check Repository Exists ...
|
||||||
var isStringRepositoryExists = !services
|
var isRepositoryExists = !services
|
||||||
.GetRegisteredService<IXStringRepository>()
|
.GetRegisteredService<IXStringRepository>()
|
||||||
.IsNull();
|
.IsNull();
|
||||||
if (!isStringRepositoryExists)
|
if (!isRepositoryExists)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
Log("AddStringService failed, IXStringRepository not provided ...");
|
Log("AddStringService failed, IXStringRepository not provided ...");
|
||||||
@@ -88,7 +88,10 @@ namespace xStringService.DI
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
// Main Provider ...
|
||||||
services.Add(new ServiceDescriptor(typeof(IXStringProvider), typeof(XStringProvider), lifeTime));
|
services.Add(new ServiceDescriptor(typeof(IXStringProvider), typeof(XStringProvider), lifeTime));
|
||||||
|
|
||||||
|
//
|
||||||
Log("AddStringService Succeed ...");
|
Log("AddStringService Succeed ...");
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Reference in New Issue
Block a user