Files
Yasuhiro KIMURA 9678929700 Update to 18.1.40
2020-07-24 01:10:28 +09:00

46 lines
1.0 KiB
C#

/*-
* Copyright (c) 2009, 2020 Oracle and/or its affiliates. All rights reserved.
*
* See the file EXAMPLES-LICENSE for license information.
*
*/
using System;
using System.Collections.Generic;
using System.Text;
using BerkeleyDB;
namespace excs_repquote
{
public class RepQuoteEnvironment
{
private bool _appFinished;
private bool _inClientSync;
private bool _isMaster;
public DatabaseEnvironment env;
public bool AppFinished {
get { return _appFinished; }
set { _appFinished = value; }
}
public bool InClientSync {
get { return _inClientSync; }
set { _inClientSync = value; }
}
public bool IsMaster {
get { return _isMaster; }
set { _isMaster = value; }
}
public static RepQuoteEnvironment Open(string home, DatabaseEnvironmentConfig cfg)
{
RepQuoteEnvironment dbEnv = new RepQuoteEnvironment();
dbEnv.env = DatabaseEnvironment.Open(home, cfg);
dbEnv._appFinished = false;
dbEnv._inClientSync = false;
dbEnv._isMaster = false;
return dbEnv;
}
}
}