March 2018
Beginner to intermediate
410 pages
10h 40m
English
Defining the metering topology data source is a straightforward process. We begin by stating that it implements the IDataSource interface:
public class MeteringTopology : IDataSource
{
public MeteringTopology()
{
}
We define some basic properties of the source, such as its identity, that it does not have any child sources, and that it does not change over time:
public const string ID = "MeteringTopology"; public string SourceID => ID; public bool HasChildren => false; public DateTime LastChanged => DateTime.MinValue; public IEnumerable<IDataSource> ChildSources => null;
We also need to make sure to give the data source a localizable human-readable name. Localizable strings are divided into namespaces. These namespaces ...
Read now
Unlock full access