/// <summary> /// Initializes a new instance of the <see cref="NotifyFeatureCommandCollectionExecutedEventArgs"/> class. /// </summary> /// <param name="index">Command index into a collection</param> /// <param name="count">Total commands into a collection</param> /// <param name="feature">Feature processed</param> /// <param name="nfce">Feature detaill</param> public NotifyFeatureCommandCollectionExecutingEventArgs(int index, int count, IISFeature feature, NotifyFeatureCommandExecutingEventArgs nfce) { Detail = nfce; Index = index; Total = count; Feature = feature; }
/// <summary> /// Create a command for the specified feature and additional arguments, If no argument is specified its default value will be an empty string. /// </summary> /// <param name="feature">Feature to use</param> /// <param name="arguments">Arguments to use</param> /// <param name="options">Command options to use</param> /// <returns> /// A reference to a new <see cref="FeatureCommand"/> associated with the specified feature. /// </returns> public static FeatureCommand Create(IISFeature feature, string arguments = null, CommandOptions options = null) => Create(feature.GetDescription(), arguments, options);