Ejemplo n.º 1
0
        private bool TryGetTimeoutData(string hash, out TimeoutDataEntity result)
        {
            try
            {
                result = (from c in context.TimeoutData
                          where c.PartitionKey == "TimeoutData" && c.RowKey == hash
                          select c).SingleOrDefault();

                return(result != null);
            }
            catch
            {
                result = null;
                return(false);
            }
        }
Ejemplo n.º 2
0
        private bool TryGetTimeoutData(string hash, out TimeoutDataEntity result)
        {
            try
            {
                result = (from c in context.TimeoutData
                          where c.PartitionKey == "TimeoutData" && c.RowKey == hash
                          select c).SingleOrDefault();

                return result != null;
            }
            catch
            {
                result = null;
                return false;
            }
        }
Ejemplo n.º 3
0
        private bool TryGetTimeoutData(ServiceContext context, string partitionkey, string rowkey, out TimeoutDataEntity result)
        {
            try
            {
                result = (from c in context.TimeoutData
                          where c.PartitionKey == partitionkey && c.RowKey == rowkey
                          select c).FirstOrDefault();
            }
            catch (Exception)
            {
                result = null;
            }

            return result != null;
        }
Ejemplo n.º 4
0
        private bool TryGetTimeoutData(ServiceContext context, string partitionkey, string rowkey, out TimeoutDataEntity result)
        {
            try
            {
                result = (from c in context.TimeoutData
                          where c.PartitionKey == partitionkey && c.RowKey == rowkey
                          select c).FirstOrDefault();
            }
            catch (Exception)
            {
                result = null;
            }

            return(result != null);
        }