Поделиться через


WebProxyClient<TService>.CreateServiceEndpoint Method (Uri, Boolean, TimeSpan, Assembly)

 

Applies To: Dynamics CRM 2015

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

Namespace:   Microsoft.Xrm.Sdk.WebServiceClient
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Syntax

protected static ServiceEndpoint CreateServiceEndpoint(
    Uri serviceUrl,
    bool useStrongTypes,
    TimeSpan timeout,
    Assembly strongTypeAssembly
)
protected:
static ServiceEndpoint^ CreateServiceEndpoint(
    Uri^ serviceUrl,
    bool useStrongTypes,
    TimeSpan timeout,
    Assembly^ strongTypeAssembly
)
static member CreateServiceEndpoint : 
        serviceUrl:Uri *
        useStrongTypes:bool *
        timeout:TimeSpan *
        strongTypeAssembly:Assembly -> ServiceEndpoint
Protected Shared Function CreateServiceEndpoint (
    serviceUrl As Uri,
    useStrongTypes As Boolean,
    timeout As TimeSpan,
    strongTypeAssembly As Assembly
) As ServiceEndpoint

Parameters

  • serviceUrl
    Type: System.Uri

    Type: URI. The URL of the web service.

  • timeout
    Type: System.TimeSpan

    Type: TimeSpan. The maximum amount of time a single channel operation has to complete before a timeout fault is raised on a service channel binding.

Return Value

Type: System.ServiceModel.Description.ServiceEndpoint

Type: ServiceEndpoint 
A web service endpoint.

Remarks

The timeout is passed to the SendTimeout, ReceiveTimeout, and OpenTimeout properties on the WCF channel binding.

See Also

WebProxyClient<TService> Class
Microsoft.Xrm.Sdk.WebServiceClient Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright