C# Class Microsoft.Dynamics.Integration.Adapters.DynamicCrm.ServerConnection

Provides server connection information.
This code implements partial (incomplete) support for federated and managed domain user accounts with CRM Online/O365 integration.
显示文件 Open project: Microsoft/Instance-Adapter-for-Microsoft-Dynamics-CRM

Public Methods

Method Description
DiscoverOrganizations ( IDiscoveryService service ) : OrganizationDetailCollection

Discovers the organizations that the calling user belongs to.

GetServerConfiguration ( ) : CrmServerConfiguration

Obtains the server connection information including the target organization's Uri and user login credentials from the user.

ServerConnection ( Uri discoveryServiceAddress, string userName, string password ) : System

Private Methods

Method Description
FindOrganization ( string orgUniqueName, OrganizationDetail orgDetails ) : OrganizationDetail

Finds a specific organization detail in the array of organization details returned from the Discovery service.

GetDeviceCredentials ( ) : ClientCredentials

Get the device credentials by either loading from local cache or request new device credentials by registering the device.

GetServerType ( Uri uri ) : AuthenticationProviderType

Obtains the authentication type of the CRM server.

GetUserLogonCredentials ( string userNameCredential, string passwordCredential ) : ClientCredentials

Obtains the user's logon credentials for the target server.

Method Details

DiscoverOrganizations() public static method

Discovers the organizations that the calling user belongs to.
public static DiscoverOrganizations ( IDiscoveryService service ) : OrganizationDetailCollection
service IDiscoveryService A Discovery service proxy instance.
return OrganizationDetailCollection

GetServerConfiguration() public method

Obtains the server connection information including the target organization's Uri and user login credentials from the user.
public GetServerConfiguration ( ) : CrmServerConfiguration
return CrmServerConfiguration

ServerConnection() public method

public ServerConnection ( Uri discoveryServiceAddress, string userName, string password ) : System
discoveryServiceAddress System.Uri
userName string
password string
return System