Share via


ServiceClient<T> Class

 

Represents the base ServiceClient class.

Namespace:   Microsoft.WindowsAzure.Common
Assembly:  Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Common.ServiceClient<T>
    Microsoft.WindowsAzure.Management.WebSites.WebSiteManagementClient
    Microsoft.WindowsAzure.WebSitesExtensions.WebSiteExtensionsClient

Syntax

public abstract class ServiceClient<T> : IDisposable
where T : ServiceClient<T>
generic<typename T>
where T : ServiceClient<T>
public ref class ServiceClient abstract : IDisposable
[<AbstractClass>]
type ServiceClient<'T when 'T : ServiceClient<'T>> = 
    class
        interface IDisposable
    end
Public MustInherit Class ServiceClient(Of T As ServiceClient(Of T))
    Implements IDisposable

Type Parameters

  • T
    The type of ServiceClient.

Constructors

Name Description
ServiceClient<T>()

Initializes a new instance of the ServiceClient<T> class.

ServiceClient<T>(HttpClient)

Initializes a new instance of the ServiceClient class.

Properties

Name Description
HttpClient

Gets the HttpClient that is used for making HTTP requests.

HttpMessageHandler

Gets a reference to an HTTP handler.

UserAgent

Gets the UserAgent collection. This collection can be modified with custom user agent strings.

Methods

Name Description
Clone(ServiceClient<T>)

Clones the service client.

Dispose()

Releases the resources that are used by the current instance of the ServiceClient<T> class.

Equals(Object)

(Inherited from Object.)

Finalize()

(Inherited from Object.)

GetHashCode()

(Inherited from Object.)

GetType()

(Inherited from Object.)

InitializeHttpClient(HttpMessageHandler)

Initializes HttpClient.

MemberwiseClone()

(Inherited from Object.)

ToString()

(Inherited from Object.)

WithHandler(DelegatingHandler)

WithHandler(ServiceClient<T>, DelegatingHandler)

Extends the ServiceClient with a new handler.

WithHandlers(IEnumerable<DelegatingHandler>)

Extension Methods

Name Description
AddHandlerToPipeline<T>(DelegatingHandler)

Adds a handler to the end of the HTTP pipeline of the client.(Defined by CloudExtensions.)

GetAssemblyVersion<T>()

Gets the assembly version of a service client.(Defined by CloudExtensions.)

GetHttpPipeline<T>()

Overloaded. Gets the HTTP pipeline for the specified service client.(Defined by CloudExtensions.)

SetRetryPolicy<T>(RetryPolicy)

Sets retry policy for the client.(Defined by CloudExtensions.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Common Namespace

Return to top