Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the AliasPath class.
 /// </summary>
 /// <param name="path">The path of an alias.</param>
 /// <param name="apiVersions">The API versions.</param>
 /// <param name="pattern">The pattern for an alias path.</param>
 /// <param name="metadata">The metadata of the alias path. If missing,
 /// fall back to the default metadata of the alias.</param>
 public AliasPath(string path = default(string), IList <string> apiVersions = default(IList <string>), AliasPattern pattern = default(AliasPattern), AliasPathMetadata metadata = default(AliasPathMetadata))
 {
     Path        = path;
     ApiVersions = apiVersions;
     Pattern     = pattern;
     Metadata    = metadata;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the Alias class.
 /// </summary>
 /// <param name="name">The alias name.</param>
 /// <param name="paths">The paths for an alias.</param>
 /// <param name="type">The type of the alias. Possible values include:
 /// 'NotSpecified', 'PlainText', 'Mask'</param>
 /// <param name="defaultPath">The default path for an alias.</param>
 /// <param name="defaultPattern">The default pattern for an
 /// alias.</param>
 /// <param name="defaultMetadata">The default alias path metadata.
 /// Applies to the default path and to any alias path that doesn't have
 /// metadata</param>
 public Alias(string name = default(string), IList <AliasPath> paths = default(IList <AliasPath>), AliasType?type = default(AliasType?), string defaultPath = default(string), AliasPattern defaultPattern = default(AliasPattern), AliasPathMetadata defaultMetadata = default(AliasPathMetadata))
 {
     Name            = name;
     Paths           = paths;
     Type            = type;
     DefaultPath     = defaultPath;
     DefaultPattern  = defaultPattern;
     DefaultMetadata = defaultMetadata;
     CustomInit();
 }