© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
13 replies
Vortac

Interface Design Question

I have an interface IAuthenticatable with one method:
Task<Tokens> GetAccessTokensAsync()
Task<Tokens> GetAccessTokensAsync()
that I'd like to use for two different API authentication classes. However, the two authenticated API responses vary, so I'm just wondering what I should do. Use separete interfaces for each API?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

design question
C#CC# / help
2mo ago
❔ Design question
C#CC# / help
3y ago
❔ Design Question
C#CC# / help
3y ago
❔ Question about design
C#CC# / help
3y ago