Spark.Engine.Core.Snapshot.Create C# (CSharp) Метод

Create() публичный статический Метод

public static Create ( Hl7.Fhir.Model.Bundle type, Uri selflink, IEnumerable keys, string sortby, IEnumerable includes = null ) : Snapshot
type Hl7.Fhir.Model.Bundle
selflink System.Uri
keys IEnumerable
sortby string
includes IEnumerable
Результат Snapshot
        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;
        }