/// <summary> /// Open Object Server and begin a low-level SOP transaction (transaction with no-ACID properties). /// </summary> /// <param name="serverFilename"></param> /// <param name="serverProfile"></param> /// <returns></returns> public static Sop.ObjectServer OpenWithTransaction(string serverFilename, Preferences preferences) { return(new ObjectServer(Sop.Transaction.Transaction.BeginOpenServer(serverFilename, preferences))); }
/// <summary> /// Constructor. /// </summary> /// <param name="serverFilename"></param> /// <param name="commitOnDispose">If there is a pending transaction, true will commit this Transaction when this object gets out of scope, false (default) will rollback.</param> /// <param name="preferences"></param> /// <param name="readOnly"></param> public ObjectServer(string serverFilename = null, bool commitOnDispose = false, Preferences preferences = null, bool readOnly = false) { Initialize(serverFilename, commitOnDispose, preferences, readOnly); }
/// <summary> /// Open Object Server in read only mode. /// </summary> /// <param name="serverFilename"></param> /// <param name="serverProfile"></param> /// <returns></returns> public static Sop.IObjectServer OpenReadOnly(string serverFilename, Preferences preferences) { return(new OnDisk.ObjectServer(serverFilename, null, preferences, true)); }
/// <summary> /// Constructor /// </summary> /// <param name="profileScheme"></param> /// <param name="dataBlockSize"></param> /// <param name="collectionSegmentSize"></param> /// <param name="maxInMemoryBlockCount"></param> public Profile(Preferences preferences = null) : base(preferences) { ComputeOtherSettings(); }