diff --git a/ICSSoft.STORMNET.Business/XMLDataService/XMLDataService.cs b/ICSSoft.STORMNET.Business/XMLDataService/XMLDataService.cs index b36a75f71..40dcc92d1 100644 --- a/ICSSoft.STORMNET.Business/XMLDataService/XMLDataService.cs +++ b/ICSSoft.STORMNET.Business/XMLDataService/XMLDataService.cs @@ -1,12 +1,5 @@ namespace ICSSoft.STORMNET.Business { - using ICSSoft.Services; - using ICSSoft.STORMNET.Business.Audit; - using ICSSoft.STORMNET.Exceptions; - using ICSSoft.STORMNET.FunctionalLanguage; - using ICSSoft.STORMNET.FunctionalLanguage.SQLWhere; - using ICSSoft.STORMNET.Security; - using System; using System.Collections; using System.Collections.Specialized; @@ -15,7 +8,9 @@ using System.Linq; using System.Reflection; + using ICSSoft.Services; using ICSSoft.STORMNET.Business.Audit; + using ICSSoft.STORMNET.Business.Interfaces; using ICSSoft.STORMNET.Exceptions; using ICSSoft.STORMNET.FunctionalLanguage; using ICSSoft.STORMNET.FunctionalLanguage.SQLWhere; @@ -41,12 +36,19 @@ public partial class XMLFileDataService : System.ComponentModel.Component, IData /// /// The security manager instance. /// The audit service. - public XMLFileDataService(ISecurityManager securityManager, IAuditService auditService) + /// The provider for creation. + public XMLFileDataService(ISecurityManager securityManager, IAuditService auditService, IBusinessServerProvider businessServerProvider) { SecurityManager = securityManager; AuditService = auditService; + BusinessServerProvider = businessServerProvider; } + /// + /// Сервис получения бизнес-серверов для обрабатываемых объектов. + /// + public IBusinessServerProvider BusinessServerProvider { get; protected set; } + /// public ISecurityManager SecurityManager { get; } @@ -1537,7 +1539,7 @@ public UpdateObjectStruct(string table, object key, SortedList values, string pr /// Копии экземпляра сервиса данных. public object Clone() { - return new XMLFileDataService(SecurityManager, AuditService) + return new XMLFileDataService(SecurityManager, AuditService, BusinessServerProvider) { _altdataSet = _altdataSet, _changeViewForTypeDelegate = _changeViewForTypeDelegate,