public DataStorageUpdater(IDataStorage storage, ISharepointClientFactory sharepointClientFactory, IConfluenceClient confluenceClient) { _storage = storage; _sharepointClientFactory = sharepointClientFactory; _confluenceClient = confluenceClient; InitUpdateActions(); Log.Trace($"Instance of {nameof(DataStorageUpdater)} was created"); }
public SPOnlineRepository(IConfluenceClient confluenceClient, ISharepointClientFactory sharepointClientFactory) { try { var storage = new FileDataStorage(); _dataProxy = new CachingProxy(storage); _dataUpdater = new DataStorageUpdater(storage, sharepointClientFactory, confluenceClient); _productCatalogManager = new ProductCatalogManager(this); //Log.Trace($"Instance of '{nameof(SPOnlineRepository)}' was created"); 11 } catch (Exception ex) { Log.Error(ex, $"'{nameof(SPOnlineRepository)}' initializing failed"); throw; } }