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; }
public static string GetRowKey(CounterData counterData) { Debug.Assert(!counterData.EntityWriterId.Contains(RowKeySeparatorChar)); return($"{counterData.EntityWriterId}{RowKeySeparatorChar}{GetTimeOfDayTicks(counterData.DateTime)}{RowKeySeparatorChar}{counterData.IsJenkins}"); }
public static EntityKey GetEntityKey(CounterData counterData) { return(new EntityKey( GetPartitionKey(counterData.DateTime).Key, GetRowKey(counterData))); }
public TestCacheCounterEntity(CounterData counterData) : base(counterData) { }
public TestRunCounterEntity(CounterData data) : base(data) { }
public UnitTestCounterEntity(CounterData counterData) : base(counterData) { }