Beispiel #1
0
        /// <summary>
        /// Gets information about the vendor identified by the given ID.
        /// </summary>
        /// <param name="vendorID">Globally unique identifier for the vendor.</param>
        /// <returns>The information about the vendor.</returns>
        public static Identifier GetInfo(Guid vendorID)
        {
            Identifier identifier;

            return(VendorLookup.TryGetValue(vendorID, out identifier) ? identifier : null);
        }
Beispiel #2
0
 /// <summary>
 /// Gets information about the vendor identified by the given ID.
 /// </summary>
 /// <param name="vendorID">Globally unique identifier for the vendor.</param>
 /// <returns>The information about the vendor.</returns>
 public static Identifier?GetInfo(Guid vendorID) => VendorLookup.TryGetValue(vendorID, out Identifier identifier)
     ? identifier
     : null;
 public void Initialize()
 {
     _vendorLooup = new VendorLookup();
 }