WebProxyClientContextInitializer<TService> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Ensures that the access token and other header values are added to every outbound service call.
generic <typename TService>
where TService : classpublic ref class WebProxyClientContextInitializer abstract : IDisposable
public abstract class WebProxyClientContextInitializer<TService> : IDisposable where TService : class
type WebProxyClientContextInitializer<'Service (requires 'Service : null)> = class
interface IDisposable
Public MustInherit Class WebProxyClientContextInitializer(Of TService)
Implements IDisposable
Type Parameters
- TService
A web service.
- Inheritance
-
WebProxyClientContextInitializer<TService>
- Implements
Constructors
WebProxyClientContextInitializer<TService>(WebProxyClient<TService>) |
Initializes a new instance of the WebProxyClientContextInitializer<TService> class using a web proxy client. |
Properties
ServiceProxy |
Gets the web proxy client for the service. |
Methods
AddCommonHeaders() |
Adds common and required headers to the outbound service call. |
AddTokenToHeaders() |
Adds the access token to the Authorization header of the outbound service call. |
Dispose() |
Disposes the web proxy client context initializer object. |
Dispose(Boolean) |
Disposes the web proxy client context initializer object. |
Finalize() |
Destructor for WebProxyClient<TService> objects. |
Initialize(ClientBase<TService>) |
Initializes the WebProxyClientContextInitializer<TService> object using a client base object. |