![]() This will be called before I begin listening on a Port or Connector. Inherited from Factory (via ClientFactory): The result Deferred will only fire after this Deferred, so that callers can be assured that there are no more event sources in the reactor once they get the result.Ĭhain onto the _disconnectedDeferred, preserving passthrough, so that the result is only available after the associated connection has been closed.Ĭalled when a connection has been started.Ĭalled when an established connection is lost. The current number of HTTP redirects encountered.Ī Deferred which only fires after the last connection associated with the request (redirects may cause multiple connections to be required) has closed. If no result has yet been provided to the result Deferred, provide the connection failure reason as an error result. When a connection attempt fails, the request cannot be issued. The maximum number of HTTP redirects that can occur before it is assumed that the redirection is endless.ĭeviate from the HTTP 1.1 RFC by handling redirects the same way as most web browsers if the request method is POST and a 302 status is encountered, the redirect is followed with a GET methodĬreate an instance of a subclass of Protocol. Other values may be specified if the server being contacted supports them. This should be one of OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, or CONNECT (case matters). The headers that were specified in the response from the server. The text message returned with the status. Once this is fired, the ivars `status', `version', and `message' will be set. ![]() Public Function AddHttpClient(Of TClient As Class, TImplementation As Class) (services As IServiceCollection, name As String) As IHttpClientBuilder Type ParametersA Deferred that will fire when the content has been retrieved. Static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name) public static AddHttpClient (this services, string name) where TClient : class where TImplementation : class, TClient static member AddHttpClient : * string -> (requires 'Client : null) Public Function AddHttpClient(Of TClient As Class, TImplementation As Class) (services As IServiceCollection, name As String, configureClient As Action(Of IServiceProvider, HttpClient)) As IHttpClientBuilder Type Parametersīe set to the type name of TClient. Public Function AddHttpClient(Of TClient As Class, TImplementation As Class) (services As IServiceCollection, name As String, configureClient As Action(Of HttpClient)) As IHttpClientBuilder Type Parameters Static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name, Action ^ configureClient) public static AddHttpClient (this services, string name, Action configureClient) where TClient : class where TImplementation : class, TClient static member AddHttpClient : * string * Action -> (requires 'Client : null) Where TClient : class where TImplementation : class, TClient Public Function AddHttpClient (services As IServiceCollection, name As String, configureClient As Action(Of HttpClient)) As IHttpClientBuilder ParametersĪ binding between the TClient type and a named HttpClient. Public Function AddHttpClient (services As IServiceCollection, name As String, configureClient As Action(Of IServiceProvider, HttpClient)) As IHttpClientBuilder Parameters Static Microsoft::Extensions::DependencyInjection::IHttpClientBuilder ^ AddHttpClient(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, System::String ^ name, Action ^ configureClient) public static AddHttpClient (this services, string name, Action configureClient) static member AddHttpClient : * string * Action -> The client name willĪdds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.ĪddHttpClient(IServiceCollection, Action)ĪddHttpClient(IServiceCollection, String, Func)Ī binding between the TClient type and a named HttpClient. ![]() Overloads AddHttpClient(IServiceCollection)Īdds the IHttpClientFactory and related services to the IServiceCollection.ĪddHttpClient(IServiceCollection, String)Īdds the IHttpClientFactory and related services to the IServiceCollection and configuresĪddHttpClient(IServiceCollection, String, Action)Ī binding between the TClient type and a named HttpClient.Ī binding between the TClient type and a named HttpClient. Microsoft makes no warranties, express or implied, with respect to the information provided here. Some information relates to prerelease product that may be substantially modified before it’s released.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |