Пример #1
0
        public static async Task <PersonalCardLoader> Start(string identity, string type)
        {
            var saga = new PersonalCardLoader(identity, type);

            var services     = ServiceLocator.Services;
            var searchResult = await services.Cards.Search(saga.identity, saga.type).ConfigureAwait(false);

            saga.setup = searchResult
                         .Select(it => new CardIds {
                PublicKeyId = it.PublicKey.Id, Id = it.Id
            })
                         .Distinct();

            return(saga);
        }
Пример #2
0
 public static Task <PersonalCardLoader> BeginLoadAll(string identity, string type)
 {
     return(PersonalCardLoader.Start(identity, type));
 }