Hi, I used this command to generate static proxy: abp generate-proxy -t csharp -u https://localhost:44366/ --without-contracts -m CoreBackend It ran with no error but some generated files cannot generate the correct method of endpoint, for example:
public virtual List<BankDto> GetExistingDataByField(string fieldName, string fieldValue, Guid docId)
{
//Client Proxy does not support the synchronization method, you should always use asynchronous methods as a best practice
throw new System.NotImplementedException();
}
Another question: can we just generate for some services or a specific service instead of generate for all?
Please find in the attached images I have enclosed sample files of application, contract and proxy files.
3 Answer(s)
-
0
hi
Client Proxy does not support the synchronization method, you should always use asynchronous methods as a best practice
Can you use async method(
return type is Task or Task<>
) and addAsync
to end of your method name(GetExistingDataByFieldAsync
)?Thanks.
-
0
I added Async to end of my method name and already resolved my issue. Thanks
-
0
Great