Ejemplo n.º 1
0
 private ErrorCode WalletOpenHandler(string name, string config, string credentials_json,
                                     ref int storage_handle_p)
 {
     try
     {
         storage_handle_p = _storage.OpenAsync(name, config, credentials_json).GetAwaiter().GetResult();
         return(ErrorCode.Success);
     }
     catch
     {
         return(ErrorCode.WalletStorageError);
     }
 }