/// <summary> /// Method to create an object from a set of object attributes. /// </summary> /// <param name="obj_attributes">The object attributes to create/open from.</param> /// <returns>The newly created object.</returns> protected override object CreateObject(ObjectAttributes obj_attributes) { if (string.IsNullOrEmpty(LogFileName)) { CreateFlags |= TransactionManagerCreateOptions.Volatile; } return(NtTransactionManager.Create(obj_attributes, Access, LogFileName, CreateFlags, CommitStrength)); }
/// <summary> /// Method to create an object from a set of object attributes. /// </summary> /// <param name="obj_attributes">The object attributes to create/open from.</param> /// <returns>The newly created object.</returns> protected override object CreateObject(ObjectAttributes obj_attributes) { Guid? identity = null; string logfile = null; switch (ParameterSetName) { case "All": return(NtTransactionManager.GetAccessibleTransactionManager(obj_attributes, Access, OpenFlags)); case "FromLogFile": logfile = base.ResolvePath(); break; case "FromId": identity = Identity; break; } return(NtTransactionManager.Open(obj_attributes, Access, logfile, identity, OpenFlags)); }
/// <summary> /// Method to create an object from a set of object attributes. /// </summary> /// <param name="obj_attributes">The object attributes to create/open from.</param> /// <returns>The newly created object.</returns> protected override object CreateObject(ObjectAttributes obj_attributes) { return(NtTransactionManager.Open(obj_attributes, Access, LogFileName, Identity, OpenFlags)); }
/// <summary> /// Method to create an object from a set of object attributes. /// </summary> /// <param name="obj_attributes">The object attributes to create/open from.</param> /// <returns>The newly created object.</returns> protected override object CreateObject(ObjectAttributes obj_attributes) { return(NtTransactionManager.Create(obj_attributes, Access, LogFileName, CreateFlags, CommitStrength)); }