예제 #1
0
 public IActionResult Index()
 {
     return(this.Protocol(new IndexViewModel
     {
         Code = ErrorType.Success,
         Message = "Welcome to Archon server!",
         Exponent = _privateKeyStore.GetPrivateKey().Exponent.BytesToBase64(),
         Modulus = _privateKeyStore.GetPrivateKey().Modulus.BytesToBase64()
     }));
 }
예제 #2
0
 public void ConfigureServices(IServiceCollection services)
 {
     services.AddAiurAPIMvc();
     services.AddSingleton(KeyStore);
     services.AddSingleton(new ArchonLocator(Configuration["ArchonEndpoint"], KeyStore.GetPrivateKey()));
     services.AddObserverServer(Configuration.GetConnectionString("ObserverConnection"));
     services.AddDeveloperServer(Configuration.GetConnectionString("DeveloperConnection"));
     services.AddAiursoftSDK();
 }