コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public async Task HandleResponseIgnoreError <TData, TError>(RealEstatetServicesResponseWrapper <TData, TError> response, params IServiceHandler[] handlers)
 {
     await HandleResponse(response, ErrorHandlerManagerFactory.NoNetworkOnlyServiceHandlerManager, handlers);
 }
コード例 #3
0
 public async Task HandleResponseShowError <TData, TError>(RealEstatetServicesResponseWrapper <TData, TError> response, params IServiceHandler[] handlers)
 {
     await HandleResponse(response, ErrorHandlerManagerFactory.FullServiceManager, handlers);
 }