-
-
Save dodikk/d15b8b0214841069e7d6 to your computer and use it in GitHub Desktop.
On Generic Parameters Naming. Which one is better?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IRestApiCallTasks<TRequest, THttpResult, TResult> | |
{ | |
Task<string> BuildRequestUrlForRequestAsync( TRequest request ); | |
Task<THttpResult> SendRequestForUrlAsync( string requestUrl ); | |
Task<TResult> ParseResponseDataAsync(THttpResult httpData); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IRestApiCallTasks<A, B, C> | |
{ | |
Task<string> BuildRequestUrlForRequestAsync( A request ); | |
Task<B> SendRequestForUrlAsync( string requestUrl ); | |
Task<C> ParseResponseDataAsync(B httpData); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment