Class Wordlist
Represents a file as a source of input data that needs to be tested against a Config by the Runner.
Inheritance
System.Object
Wordlist
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RuriLib.Models
Assembly: RuriLib.dll
Syntax
public class Wordlist
Constructors
| Improve this Doc View SourceWordlist()
Needed for NoSQL deserialization.
Declaration
public Wordlist()
Wordlist(String, String, String, String, Boolean)
Creates an instance of a Wordlist.
Declaration
public Wordlist(string name, string path, string type, string purpose, bool countLines = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the Wordlist |
System.String | path | The path to the file on disk |
System.String | type | The WordlistType as a string |
System.String | purpose | The purpose of the Wordlist |
System.Boolean | countLines | Whether to enumerate the total number of data lines in the Wordlist |
Properties
| Improve this Doc View SourceId
Needed for NoSQL storage.
Declaration
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Name
The name of the Wordlist.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Path
The path where the file is stored on disk.
Declaration
public string Path { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Purpose
The purpose for which the Wordlist should be used.
Declaration
public string Purpose { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Total
The total number of data lines of the file.
Declaration
public int Total { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Type
The WordlistType as a string (since the WordlistTypes in the Environment file are editable).
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |