/// <summary>
 /// Gets the system stores present in the specified Location.
 /// </summary>
 /// <param name="systemStoreLocation">The System Stores Location.</param>
 /// <returns>An array of strings (never null).</returns>
 public static IEnumerable<CertificateStore> GetSystemStores(CertificateStoreLocation systemStoreLocation)
 {
     var names = new EnumSystemStore(systemStoreLocation.Flags).GetSystemStores();
     return names.Select(name => new CertificateStore(name, systemStoreLocation));
 }
 public static CertificateStore GetCertificateStore(string storeName, CertificateStoreLocation systemStoreLocation)
 {
     return new CertificateStore(storeName, systemStoreLocation);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CertificateStore"/> class.
 /// </summary>
 /// <param name="storeName">Name of the store.</param>
 /// <param name="storeLocation">The store location.</param>
 internal CertificateStore(string storeName, CertificateStoreLocation storeLocation)
 {
     name = storeName;
     location = storeLocation;
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CertificateStore"/> class.
 /// </summary>
 /// <param name="storeName">Name of the store.</param>
 /// <param name="storeLocation">The store location.</param>
 internal CertificateStore(string storeName, CertificateStoreLocation storeLocation)
 {
     name     = storeName;
     location = storeLocation;
 }
 public static CertificateStore GetCertificateStore(string storeName, CertificateStoreLocation systemStoreLocation)
 {
     return(new CertificateStore(storeName, systemStoreLocation));
 }
 public static CertificateStore GetCertificateStore(string storeName, StoreLocation storeLocation)
 {
     return(GetCertificateStore(storeName, CertificateStoreLocation.FromStoreLocation(storeLocation)));
 }
        /// <summary>
        /// Gets the system stores present in the specified Location.
        /// </summary>
        /// <param name="systemStoreLocation">The System Stores Location.</param>
        /// <returns>An array of strings (never null).</returns>
        public static IEnumerable <CertificateStore> GetSystemStores(CertificateStoreLocation systemStoreLocation)
        {
            var names = new EnumSystemStore(systemStoreLocation.Flags).GetSystemStores();

            return(names.Select(name => new CertificateStore(name, systemStoreLocation)));
        }
 /// <summary>
 /// Gets the system stores present in the specified Location.
 /// </summary>
 /// <param name="storeLocation">The System Stores Location.</param>
 /// <returns>An array of strings (never null).</returns>
 public static IEnumerable <CertificateStore> GetSystemStores(StoreLocation storeLocation)
 {
     return(GetSystemStores(CertificateStoreLocation.FromStoreLocation(storeLocation)));
 }
        /// <summary>
        /// Gets the system stores for the current user location.
        /// </summary>
        /// <returns>An array of strings (never null).</returns>
        public static IEnumerable <CertificateStore> GetSystemStores()
        {
            var names = new EnumSystemStore(CapiConstants.CERT_SYSTEM_STORE_CURRENT_USER).GetSystemStores();

            return(names.Select(name => new CertificateStore(name, CertificateStoreLocation.FromId(CapiConstants.CERT_SYSTEM_STORE_CURRENT_USER_ID))));
        }