comparison OrthancServer/main.cpp @ 1549:e5e975e9b738

refactoring and simplification of StorageAccessor
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 17 Aug 2015 10:47:04 +0200
parents 4f8c8ef114db
children 904096e7367e
comparison
equal deleted inserted replaced
1548:e9325f3ac496 1549:e5e975e9b738
519 519
520 static bool ConfigureServerContext(IDatabaseWrapper& database, 520 static bool ConfigureServerContext(IDatabaseWrapper& database,
521 IStorageArea& storageArea, 521 IStorageArea& storageArea,
522 OrthancPlugins *plugins) 522 OrthancPlugins *plugins)
523 { 523 {
524 ServerContext context(database); 524 ServerContext context(database, storageArea);
525 context.SetStorageArea(storageArea);
526 525
527 context.SetCompressionEnabled(Configuration::GetGlobalBoolParameter("StorageCompression", false)); 526 context.SetCompressionEnabled(Configuration::GetGlobalBoolParameter("StorageCompression", false));
528 context.SetStoreMD5ForAttachments(Configuration::GetGlobalBoolParameter("StoreMD5ForAttachments", true)); 527 context.SetStoreMD5ForAttachments(Configuration::GetGlobalBoolParameter("StoreMD5ForAttachments", true));
529 528
530 try 529 try