コード例 #1
0
ファイル: FileContract.cs プロジェクト: reinarukami/AFPApi
 public static void Test()
 {
     //Get the user cookies
     var test1 = DefaultConfiguration.GetContractConfig().GetSection("DefaultAccount").Value;
     var test2 = DefaultConfiguration.GetContractConfig().GetSection("DefaultPassword").Value;
 }
コード例 #2
0
ファイル: FileContract.cs プロジェクト: reinarukami/AFPApi
 static FileContract()
 {
     //Get address and privatekey through session or cookie
     Contract = DefaultContract.InitContract(DefaultConfiguration.GetContractConfig().GetSection("DefaultAccount").Value, DefaultConfiguration.GetContractConfig().GetSection("DefaultPassword").Value, DefaultConfiguration.GetContractConfig().GetSection("ContractAbi").Value, DefaultConfiguration.GetContractConfig().GetSection("ContractAddress").Value);
 }