Example #1
0
        protected CounterEntity(CounterData data)
        {
            var key = CounterUtil.GetEntityKey(data);

            PartitionKey     = key.PartitionKey;
            RowKey           = key.RowKey;
            IsJenkins        = data.IsJenkins;
            DateTimeUtcTicks = data.DateTime.UtcTicks;
            EntityWriterId   = data.EntityWriterId;
        }
Example #2
0
 public static string GetRowKey(CounterData counterData)
 {
     Debug.Assert(!counterData.EntityWriterId.Contains(RowKeySeparatorChar));
     return($"{counterData.EntityWriterId}{RowKeySeparatorChar}{GetTimeOfDayTicks(counterData.DateTime)}{RowKeySeparatorChar}{counterData.IsJenkins}");
 }
Example #3
0
 public static EntityKey GetEntityKey(CounterData counterData)
 {
     return(new EntityKey(
                GetPartitionKey(counterData.DateTime).Key,
                GetRowKey(counterData)));
 }
Example #4
0
 public TestCacheCounterEntity(CounterData counterData) : base(counterData)
 {
 }
Example #5
0
 public TestRunCounterEntity(CounterData data) : base(data)
 {
 }
Example #6
0
 public UnitTestCounterEntity(CounterData counterData) : base(counterData)
 {
 }