Example #1
0
        public DataStorageUpdater(IDataStorage storage, ISharepointClientFactory sharepointClientFactory, IConfluenceClient confluenceClient)
        {
            _storage = storage;
            _sharepointClientFactory = sharepointClientFactory;
            _confluenceClient        = confluenceClient;

            InitUpdateActions();

            Log.Trace($"Instance of {nameof(DataStorageUpdater)} was created");
        }
Example #2
0
        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;
            }
        }