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