私は奇妙な問題で立ち往生しています。ブリーズ クライアント (c#) を使用してデータをクエリすると、単体テストでデータが正常に取得されます。webApi コントローラーから同じコードを呼び出すと、task.Result でハングします。誰もこの行動を見たことがありますか?コードは次のとおりです。
// This method when called from unit test works fine, but not from webApi:
public IEnumerable<ProductBaseInformation> GetProductBaseInformation()
{
var result = GetAllProductBaseInformation();
var productBase = result.Result; // GETS STUCK HERE..CODE NOT GOING FURTHER...
return productBase;
}
private async Task<IEnumerable<ProductBaseInformation>> GetAllProductBaseInformation()
{
_entityQuery = new EntityQuery<ProductBaseInformation>();
var products = await _entityManager.ExecuteQuery(_entityQuery);
return (IEnumerable<ProductBaseInformation>)products;
}