Fix Service Registration ...
This commit is contained in:
@@ -6,6 +6,7 @@ using xFileService.Interfaces;
|
||||
using xFileService.Interfaces.Entities;
|
||||
using xFileService.Providers;
|
||||
using xStorageService.Interfaces;
|
||||
using xTagService.Interfaces;
|
||||
|
||||
namespace xFileService.DI
|
||||
{
|
||||
@@ -81,11 +82,12 @@ namespace xFileService.DI
|
||||
// Check Dependencies Exists ...
|
||||
var isDependenciesPassed = !services
|
||||
.GetRegisteredService<IXStorageProvider>()
|
||||
.IsNull();
|
||||
.IsNull() &&
|
||||
!services.GetRegisteredService<IXTagProvider>().IsNull();
|
||||
if (!isDependenciesPassed)
|
||||
{
|
||||
//
|
||||
Log("AddFileService failed due Dependencies Issues, IXStorageProvider not provided ...");
|
||||
Log("AddFileService failed due Dependencies Issues, IXTagProvider, IXStorageProvider not provided ...");
|
||||
throw exception;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user