コード例 #1
0
        private void GetNoName()
        {
            Do(() =>
            {
                List <Site> websites;
                if (string.IsNullOrEmpty(Slot))
                {
                    websites = WebsitesClient.ListWebsites();
                }
                else
                {
                    websites = WebsitesClient.ListWebsites(Slot);
                }

                Cache.SaveSites(CurrentSubscription.SubscriptionId, new Sites(websites));
                WriteWebsites(websites);
            });
        }
コード例 #2
0
        private void GetNoName()
        {
            Do(() =>
            {
                List <Site> websites;
                if (string.IsNullOrEmpty(Slot))
                {
                    websites = WebsitesClient.ListWebsites();
                }
                else
                {
                    websites = WebsitesClient.ListWebsites(Slot);
                }

                Cache.SaveSites(Profile.Context.Subscription.Id.ToString(), new Sites(websites));
                WriteWebsites(websites);
            });
        }