예제 #1
0
 public AdminController(LegacyMigrationWorker migrationWorker, IAdminCommandWorker adminCommandWorker, IAdminQueryWorker adminQueryWorker)
 {
     Contract.Requires <System.ArgumentNullException>(migrationWorker != null, "migrationWorker");
     Contract.Requires <System.ArgumentNullException>(adminCommandWorker != null, "adminCommandWorker");
     Contract.Requires <System.ArgumentNullException>(adminQueryWorker != null, "adminQueryWorker");
     MigrationWorker    = migrationWorker;
     AdminCommandWorker = adminCommandWorker;
     AdminQueryWorker   = adminQueryWorker;
 }
예제 #2
0
 public AdminController(LegacyMigrationWorker migrationWorker, IAdminCommandWorker adminCommandWorker, IAdminQueryWorker adminQueryWorker)
 {
     Contract.Requires<System.ArgumentNullException>(migrationWorker != null, "migrationWorker");
     Contract.Requires<System.ArgumentNullException>(adminCommandWorker != null, "adminCommandWorker");
     Contract.Requires<System.ArgumentNullException>(adminQueryWorker != null, "adminQueryWorker");
     MigrationWorker = migrationWorker;
     AdminCommandWorker = adminCommandWorker;
     AdminQueryWorker = adminQueryWorker;
 }