Example #1
0
 public DataSampleHeader()
 {
     Key = Guid.NewGuid().ToString();
     Created = DateTime.UtcNow;
     Modified = DateTime.UtcNow;
     Summary = new SampleSummary();
     Metadata = new DataSampleMetadata();
     _uriProvider = new UriProvider();
 }
Example #2
0
        public virtual SampleSummary Recalculate()
        {
            if (SampleData != null)
            {
                if (Summary == null) Summary = new SampleSummary();

                Summary.Recalculate(SampleData);
            }

            return Summary;
        }