コード例 #1
0
        /// <summary>
        /// Get Current Project Languages
        /// </summary>
        /// <returns></returns>
        public static List <string> GetProjectLanguages(IClient client)
        {
            var command = new GetProjectCommand();
            var project = client.ExecuteAsync(command).Result;

            return(project.Languages.ToList());
        }
コード例 #2
0
        /// <summary>
        /// Get Current Project Languages
        /// </summary>
        /// <returns></returns>
        public List <string> GetProjectLanguages()
        {
            IClient commerceToolsClient = this.GetService <IClient>();
            var     command             = new GetProjectCommand();
            var     project             = commerceToolsClient.ExecuteAsync(new GetProjectCommand()).Result;

            return(project.Languages.ToList());
        }