async Task HandleResponse <TData, TError>(RealEstatetServicesResponseWrapper <TData, TError> response, ServiceHandlerManager serviceManager, IServiceHandler[] handlers) { if (handlers != null) { serviceManager.InsertRange(0, handlers); } await serviceManager.HandleErrors(response); if (handlers != null) { serviceManager.RemoveRange(0, handlers.Length); } }
public async Task HandleResponseIgnoreError <TData, TError>(RealEstatetServicesResponseWrapper <TData, TError> response, params IServiceHandler[] handlers) { await HandleResponse(response, ErrorHandlerManagerFactory.NoNetworkOnlyServiceHandlerManager, handlers); }
public async Task HandleResponseShowError <TData, TError>(RealEstatetServicesResponseWrapper <TData, TError> response, params IServiceHandler[] handlers) { await HandleResponse(response, ErrorHandlerManagerFactory.FullServiceManager, handlers); }