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

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

public static CreateKey ( ) : string
Результат string
        public static string CreateKey()
        {
            return Guid.NewGuid().ToString();
        }

Usage Example

Пример #1
0
        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);
        }