1 | // Licensed to the .NET Foundation under one or more agreements. |
2 | // The .NET Foundation licenses this file to you under the MIT license. |
3 | // See the LICENSE file in the project root for more information. |
4 | // ============================================================ |
5 | // |
6 | // FailureCache.hpp |
7 | // |
8 | |
9 | |
10 | // |
11 | // Defines the FailureCache class |
12 | // |
13 | // ============================================================ |
14 | |
15 | |
16 | #ifndef __BINDER__FAILURE_CACHE_HPP__ |
17 | #define __BINDER__FAILURE_CACHE_HPP__ |
18 | |
19 | #include "failurecachehashtraits.hpp" |
20 | |
21 | namespace BINDER_SPACE |
22 | { |
23 | class FailureCache : protected SHash<FailureCacheHashTraits> |
24 | { |
25 | private: |
26 | typedef SHash<FailureCacheHashTraits> Hash; |
27 | public: |
28 | FailureCache(); |
29 | ~FailureCache(); |
30 | |
31 | HRESULT Add(/* in */ SString &assemblyNameorPath, |
32 | /* in */ HRESULT hrBindResult); |
33 | HRESULT Lookup(/* in */ SString &assemblyNameorPath); |
34 | void Remove(/* in */ SString &assemblyName); |
35 | }; |
36 | }; |
37 | |
38 | #endif |
39 | |