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); }