public void ConstructMissing() { allValues.Clear(); var server = InfoTestsHelper.Create("Persistence", allValues); PersistenceInfo info = new PersistenceInfo(server); Assert.IsNull(info.AofSize); Assert.IsNull(info.IsAofRewriting); Assert.IsNull(info.IsRdbSaving); }
public void Construct() { var server = InfoTestsHelper.Create("Persistence", allValues); Assert.Throws <ArgumentNullException>(() => new PersistenceInfo(null)); PersistenceInfo info = new PersistenceInfo(server); Assert.AreEqual(100, info.AofSize); Assert.AreEqual(1, info.IsAofRewriting); Assert.AreEqual(1, info.IsRdbSaving); }
public RedisInfo() { Replication = new ReplicationInfo(); Clients = new ClientInfo(); Server = new ServerInfo(); Memory = new MemoryInfo(); Persistence = new PersistenceInfo(); Stats = new StatsInfo(); CPU = new CPUInfo(); Keyspace = new KeyspaceInfo(); }
public async Task Handle(PersistenceInfo <EnergySummary> notification, CancellationToken cancellationToken) { await _persistFunctions.Handle(notification, cancellationToken); }
public async Task Handle(PersistenceInfo <InverterTemperatureSummary> notification, CancellationToken cancellationToken) { await _persistFunctions.Handle(notification, cancellationToken); }