Exemplo n.º 1
0
 /// <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 (ParameterSetName == "All")
     {
         return(NtTransaction.GetAccessibleTransaction(obj_attributes, Access, TransactionManager).ToArray());
     }
     return(NtTransaction.Open(obj_attributes, Access, UnitOfWork, TransactionManager));
 }
 /// <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(NtTransaction.Create(obj_attributes, Access, UnitOfWork,
                                 TransactionManager, CreateFlags, IsolationLevel,
                                 IsolationFlags, Timeout, Description));
 }
 /// <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(NtTransaction.Open(obj_attributes, Access, UnitOfWork, TransactionManager));
 }