ServiceProxy Members
Provides an abstract base class to encapsulate service connection operations and user authentication management.
The following tables list the members exposed by the ServiceProxy type.
Protected Constructors
Name | Description | |
---|---|---|
ServiceProxy | Overloaded. Initializes a new instance of the ServiceProxy class. |
Top
Public Properties
(see also Protected Properties)
Name | Description | |
---|---|---|
ClientCredentials | Gets the login credentials of the client. | |
DeviceCredentials | Gets the Windows Live credentials of a registered device. | |
EndpointAutoSwitchEnabled | Gets or sets a value that enables automatic switching from the organization’s current endpoint to an alternate endpoint. | |
EndpointSwitch | Gets the endpoint switch information from the web service configuration. | |
HomeRealmSecurityTokenResponse | Gets the security token response of the home realm. | |
HomeRealmUri | Gets the home realm URI. | |
IsAuthenticated | Gets a value indicating if the WCF channel has been authenticated. | |
SecurityTokenResponse | Gets the security token response. | |
ServiceChannel | Gets the communication channel used to access a Microsoft Dynamics CRM service. | |
ServiceConfiguration | Gets a service configuration. | |
ServiceManagement | Gets a service management. | |
Timeout | Gets or sets the maximum amount of time a single channel operation has to complete before a timeout fault is raised on a service channel binding. | |
UserPrincipalName | Gets or sets the UPN that is an Internet-style login name for a user based on the Internet standard RFC 822. |
Top
Protected Properties
Name | Description | |
---|---|---|
ChannelFactory | Gets a WCF channel factory that manages a single channel instance. |
Top
Public Methods
(see also Protected Methods)
Name | Description | |
---|---|---|
Authenticate | Closes the service channel and channel factory if they are open, and then invokes AuthenticateCore. | |
AuthenticateCrossRealm | Invokes AuthenticateCrossRealmCore. | |
AuthenticateDevice | Invokes AuthenticateDeviceCore. | |
Dispose | Overloaded. Methods that explicitly free allocated service channel resources. | |
Equals | (inherited from Object) | |
GetHashCode | (inherited from Object) | |
GetType | (inherited from Object) | |
SwitchToAlternateEndpoint | Switches the organization’s current endpoint to an alternate endpoint, if one is available. | |
ToString | (inherited from Object) |
Top
Protected Methods
Name | Description | |
---|---|---|
AuthenticateCore | Authenticates the client with a service. | |
AuthenticateCrossRealmCore | Authenticates a user in a realm other than the realm that the Microsoft Dynamics CRM server is located in. | |
AuthenticateDeviceCore | Authenticates a device with Windows Live. | |
CloseChannel | Closes a validated service channel. | |
Dispose | Overloaded. Methods that explicitly free allocated service channel resources. | |
Finalize | Overridden. Implicitly frees allocated service channel and service factory resources. | |
HandleFailover | Overloaded. For internal use only. | |
MemberwiseClone | (inherited from Object) | |
OnFactoryClosed | Event handler virtual method for a channel factory that is in a closed state. | |
OnFactoryFaulted | Event handler virtual method for a channel factory that is in a faulted state. | |
OnFactoryOpened | Event handler virtual method for a channel factory that is in an opened state. | |
SetBindingTimeout | The maximum amount of time a single channel operation has to complete before a timeout fault is raised on a service channel binding. | |
ShouldRetry | Checks a message security exception to determine if a service call should be attempted again. | |
ValidateAuthentication | Authenticates the client and creates a new service channel. |
Top
Public Events
Name | Description | |
---|---|---|
EndpointSwitched | Occurs when a failover recovery has completed and the organization’s current endpoint has been switched to an alternate endpoint. | |
EndpointSwitchRequired | Occurs when a failover has occurred and a switch from the organization’s current endpoint to an alternate endpoint is required. | |
FactoryClosed | Occurs when a channel factory is closed. | |
FactoryFaulted | Occurs when a channel factory is faulted. | |
FactoryOpened | Occurs when a channel factory is opened. |
Top
See Also
Reference
ServiceProxy Generic Class
Microsoft.Xrm.Sdk.Client Namespace
Other Resources
Active Directory and Claims-Based Authentication
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.