Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
hope you didn't forget the `IAutoRenewTokenRetryOnceOnUnauthorizedAuthorizedServerHttpServiceProviderFactoryImplementationCollection`
-
@tosensei well there is indeed also an interface version of it, but not the factory stuff 🤣
-
@Frederick if he replies to you then he won't have enough time to finish off the next class name before sprint end :/
-
Sorry had a crazy weekend, @Frederick well to explain i have to break down the name and explain a little:
It is part of a base http library I use in everything I make to make api calls really easy
HttpServer is just a wrapper of a .Net http client that has no base adress.
ServerHttpServer is with the base adress set to a server
AuthorisedServerHttpService.... is with authorization handled and set. Calls made before authorization is finished will just wait.
The above classes do also exists because e.g. the ServerHttpService is used to call the login api's to authorize the AuthorisedServerHttpService.
They also have an interface version I*HttpService
An IHttpService is supplied in the constructor of an abstract class CrudService, which has basic Get, Post, Put and Delete handeling.
Now other classes extend this CrudService, e.g. LoginCrudService, UserCrudService, ProfileCrudService, in which tou define the API call with appropriate request and response models.
Based on which IHttpService you provide in the contructor it goes to an specific base adress and handles Authorizarion.
So when I start typing for example ServerHttpService Intelly sence wil show all the types of thosr and if i short it it will not and be really inconvenient.
What is the longest class name you ever wrote? Mine is:
AutoRenewTokenRetryOnceOnUnauthorizedAuthorizedServerHttpService
question