Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XmlDeviceIdFormatter"/> class.
 /// </summary>
 /// <param name="encoder">The <see cref="IDeviceIdComponentEncoder"/> instance to use to encode individual components.</param>
 public StringDeviceIdFormatter(IDeviceIdComponentEncoder encoder)
     : this(encoder, ".")
 {
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XmlDeviceIdFormatter"/> class.
 /// </summary>
 /// <param name="encoder">The <see cref="IDeviceIdComponentEncoder"/> instance to use to encode individual components.</param>
 /// <param name="delimiter">The delimiter to use when concatenating the encoded component values.</param>
 public StringDeviceIdFormatter(IDeviceIdComponentEncoder encoder, string delimiter)
 {
     _encoder   = encoder ?? throw new ArgumentNullException(nameof(encoder));
     _delimiter = delimiter;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XmlDeviceIdFormatter"/> class.
 /// </summary>
 /// <param name="encoder">The <see cref="IDeviceIdComponentEncoder"/> instance to use to encode individual components.</param>
 public XmlDeviceIdFormatter(IDeviceIdComponentEncoder encoder)
 {
     _encoder = encoder ?? throw new ArgumentNullException(nameof(encoder));
 }