public static Snapshot Create(Bundle.BundleType type, Uri selflink, IEnumerable<string> keys, string sortby, IEnumerable<string> includes = null) { Snapshot snapshot = new Snapshot(); snapshot.Type = type; snapshot.Id = CreateKey(); snapshot.WhenCreated = DateTimeOffset.UtcNow; //snapshot.FeedTitle = title; snapshot.FeedSelfLink = selflink.ToString(); snapshot.Includes = (includes != null) ? includes.ToList() : null; snapshot.Keys = keys; snapshot.Count = keys.Count(); snapshot.SortBy = sortby; return snapshot; }
public static Snapshot Create(Bundle.BundleType type, Uri selflink, IEnumerable<string> keys, string sortby, int? count, IList<string> includes) { Snapshot snapshot = new Snapshot(); snapshot.Type = type; snapshot.Id = Snapshot.CreateKey(); snapshot.WhenCreated = DateTimeOffset.UtcNow; snapshot.FeedSelfLink = selflink.ToString(); snapshot.Includes = includes; snapshot.Keys = keys; snapshot.Count = keys.Count(); snapshot.CountParam = count; snapshot.SortBy = sortby; return snapshot; }