This repository has been archived by the owner on Apr 6, 2020. It is now read-only.
forked from neo-project/neo-gui-2.x
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved CertificateQueryService to base project (#68)
* Moved CertificateQueryService to base project, added BaseRegistrationModule * Changed CertificateQueryService to internal
- Loading branch information
1 parent
129dbd6
commit 6e26137
Showing
10 changed files
with
120 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Autofac; | ||
using Neo.Gui.Base.Certificates; | ||
|
||
namespace Neo.Gui.Base | ||
{ | ||
public class BaseRegistrationModule : Module | ||
{ | ||
protected override void Load(ContainerBuilder builder) | ||
{ | ||
builder | ||
.RegisterType<CertificateQueryService>() | ||
.As<ICertificateQueryService>() | ||
.SingleInstance(); | ||
|
||
base.Load(builder); | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...pf/Certificates/CertificateQueryResult.cs → ...se/Certificates/CertificateQueryResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ertificates/CertificateQueryResultType.cs → ...ertificates/CertificateQueryResultType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using ECPoint = Neo.Cryptography.ECC.ECPoint; | ||
|
||
namespace Neo.Gui.Base.Certificates | ||
{ | ||
public interface ICertificateQueryService | ||
{ | ||
void Initialize(string certificateCachePath); | ||
|
||
CertificateQueryResult Query(ECPoint pubkey); | ||
|
||
CertificateQueryResult Query(UInt160 hash); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters