bool TryGetTimeoutData(ServiceContext context, string partitionKey, string rowKey, out TimeoutDataEntity result)
        {
            result = (from c in context.TimeoutData
                      where c.PartitionKey == partitionKey && c.RowKey == rowKey // issue #191 cannot occur when both partitionkey and rowkey are specified
                      select c).SafeFirstOrDefault();

            return result != null;

        }
        private bool TryGetTimeoutData(ServiceContext context, string partitionKey, string rowKey, out TimeoutDataEntity result)
        {
            result = (from c in context.TimeoutData
                        where c.PartitionKey == partitionKey && c.RowKey == rowKey
                      select c).SafeFirstOrDefault();

            return result != null;

        }
Exemplo 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);
        }
Exemplo n.º 4
0
        bool TryGetTimeoutData(ServiceContext context, string partitionKey, string rowKey, out TimeoutDataEntity result)
        {
            result = (from c in context.TimeoutData
                      where c.PartitionKey == partitionKey && c.RowKey == rowKey // issue #191 cannot occur when both partitionkey and rowkey are specified
                      select c).SafeFirstOrDefault();

            return(result != null);
        }