예제 #1
0
 public virtual void ReleaseLocks(String[] resources)
 {
     try
     {
         throw new InvalidServiceVersionException(ServiceNameConstants.Locking, 1, 2);
     }
     catch (Exception exception)
     {
         TeamFoundationTracingService.TraceExceptionRaw(98001, s_area, s_layer, exception);
         throw;
     }
 }
예제 #2
0
        /// <summary>
        /// Releases the lock for the given resource
        /// </summary>
        /// <param name="resource"></param>
        public virtual void ReleaseLock(String resource)
        {
            try
            {
                resource = AppendPartitionId(resource);
                PrepareStoredProcedure("prc_ReleaseLock");

                BindString("@resource", resource, 255, false, System.Data.SqlDbType.NVarChar);
                ExecuteNonQuery();
            }
            catch (Exception exception)
            {
                TeamFoundationTracingService.TraceExceptionRaw(98000, s_area, s_layer, exception);
                throw;
            }
        }
예제 #3
0
        public override void ReleaseLocks(String[] resources)
        {
            try
            {
                resources = AppendPartitionIds(resources);
                PrepareStoredProcedure("prc_ReleaseLocks");

                this.BindOrderedStringTable("@resources", resources);
                ExecuteNonQuery();
            }
            catch (Exception exception)
            {
                TeamFoundationTracingService.TraceExceptionRaw(98002, s_area, s_layer, exception);
                throw;
            }
        }