示例#1
0
        /// <summary>
        /// Returns an Object that Lists the Availaible Plugins.
        /// </summary>
        /// <remarks>
        /// The <paramref name="pluginName"/> length must be less or equal to 39, because of a limitation of the appmanifest.
        /// </remarks>
        /// <exception cref="ArgumentException">
        /// the length of <paramref name="pluginName"/> is 40 or greater.
        /// </exception>
        /// <param name="pluginName">The Plugin name defined in the appmanifest.</param>
        /// <returns>The <see cref="AppPlugin.PluginList<,,,>"/></returns>
        public static async Task <PluginList <TIn, TOut, TProgress> > ListAsync(string pluginName)
        {
            var pluginList = new PluginList <TIn, TOut, TProgress>(pluginName);
            await pluginList.InitAsync();

            return(pluginList);
        }