Udostępnij za pośrednictwem


WebProxyClient<TService> Class

Definition

A base class that creates an authenticated web service endpoint on a WCF channel.

generic <typename TService>
 where TService : classpublic ref class WebProxyClient abstract : System::ServiceModel::ClientBase<TService>, IDisposable
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.CodeQuality.Analyzers", "CA1063: Implement IDisposable correctly", Justification="FxCop Bankruptcy")]
public abstract class WebProxyClient<TService> : System.ServiceModel.ClientBase<TService>, IDisposable where TService : class
[<System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.CodeQuality.Analyzers", "CA1063: Implement IDisposable correctly", Justification="FxCop Bankruptcy")>]
type WebProxyClient<'Service (requires 'Service : null)> = class
    inherit ClientBase<'Service (requires 'Service : null)>
    interface IDisposable
Public MustInherit Class WebProxyClient(Of TService)
Inherits ClientBase(Of TService)
Implements IDisposable

Type Parameters

TService

A type of web service.

Inheritance
ClientBase<TService>
WebProxyClient<TService>
Derived
Attributes
Implements

Constructors

WebProxyClient<TService>(Uri, Assembly)

Initializes a new instance of the WebProxyClient<TService> class using an Organization service URL and an assembly.

WebProxyClient<TService>(Uri, Boolean)

Initializes a new instance of the WebProxyClient<TService> class using an Organization service URL.

WebProxyClient<TService>(Uri, TimeSpan, Assembly)

Initializes a new instance of the WebProxyClient<TService> class using an Organization service URL, a time span, and an assembly.

WebProxyClient<TService>(Uri, TimeSpan, Boolean)

Initializes a new instance of the WebProxyClient<TService> class using an Organization service URL and time span.

Properties

HeaderToken

The access token returned from OAuth authentication.

SdkClientVersion

The version of your client application.

Methods

CreateNewInitializer()

Creates the WCF proxy client initializer which gets invoked on every SDK method call. This method makes sure that the access token and other header values are added to the outbound call.

CreateServiceEndpoint(Uri, Boolean, TimeSpan, Assembly)

Creates the service endpoint required for the proxy and adds support for early-bound types in the provided assembly.

Dispose()

Disposes the web proxy client object.

Dispose(Boolean)

Disposes the web proxy client object.

Finalize()

Destructor for the WebProxyClient<TService> class.

GetBinding(Uri, TimeSpan)

Returns the default BasicHttpBinding that the proxy classes will use.

Applies to

See also