Exemple #1
0
 public ServiceContext()
 {
     DatabaseConfig   = GetDefaultDatabaseConfig();
     ProtocolConfig   = GetDefaultProtocolConfig();
     ServiceLogger    = GetDefaultServiceLogger();
     ServiceDelegator = new TransactionDelegator(this);
 }
Exemple #2
0
 public ServiceContext(DbConfigEntity databaseConfig, ProtocolConfig protocolConfig, ILogger serviceLogger)
 {
     InitServiceContent(databaseConfig, protocolConfig, serviceLogger);
     ServiceDelegator = new TransactionDelegator(this);
 }