C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

DiscoverOrganizations() публичный статический Метод

Discovers the organizations that the calling user belongs to.
public static DiscoverOrganizations ( IDiscoveryService service ) : OrganizationDetailCollection
service IDiscoveryService A Discovery service proxy instance.
Результат OrganizationDetailCollection

GetServerConfiguration() публичный Метод

Obtains the server connection information including the target organization's Uri and user login credentials from the user.
public GetServerConfiguration ( ) : CrmServerConfiguration
Результат CrmServerConfiguration

ServerConnection() публичный Метод

public ServerConnection ( Uri discoveryServiceAddress, string userName, string password ) : System
discoveryServiceAddress System.Uri
userName string
password string
Результат System