Пример #1
0
        public PluginInformation(
            PluginId id,
            PluginTitle title,
            PluginVersion version,
            PluginDescription description,
            Uri uri)
        {
            if (id == null)
            {
                throw new ArgumentNullException(nameof(id));
            }
            if (title == null)
            {
                throw new ArgumentNullException(nameof(title));
            }
            if (version == null)
            {
                throw new ArgumentNullException(nameof(version));
            }
            if (description == null)
            {
                throw new ArgumentNullException(nameof(description));
            }
            if (uri == null)
            {
                throw new ArgumentNullException(nameof(uri));
            }

            Id          = id;
            Title       = title;
            Version     = version;
            Description = description;
            Uri         = uri;
        }
Пример #2
0
 public static PluginInformation With(
     PluginId id,
     PluginTitle title,
     PluginVersion version,
     PluginDescription description,
     Uri uri)
 {
     return(new PluginInformation(
                id,
                title,
                version,
                description,
                uri));
 }