Compartir a través de


CachedOrganizationService Class

 

Applies To: Dynamics CRM 2013

A wrapper class around the IOrganizationService that manages the details of setting up an OrganizationServiceProxy or other arbitrary IOrganizationService objects. When paired with an OrganizationServiceCache object, becomes a cached service. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Services
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Client.Services.OrganizationService
    Microsoft.Xrm.Client.Services.CachedOrganizationService

Syntax

public class CachedOrganizationService : OrganizationService
public ref class CachedOrganizationService : OrganizationService
type CachedOrganizationService = 
    class
        inherit OrganizationService
    end
Public Class CachedOrganizationService
    Inherits OrganizationService

Constructors

Name Description
System_CAPS_pubmethod CachedOrganizationService(CrmConnection)

Initializes a new instance of the CachedOrganizationService class.

System_CAPS_pubmethod CachedOrganizationService(CrmConnection, IOrganizationServiceCache)

Initializes a new instance of the CachedOrganizationService class.

System_CAPS_pubmethod CachedOrganizationService(IOrganizationService)

Initializes a new instance of the CachedOrganizationService class.

System_CAPS_pubmethod CachedOrganizationService(IOrganizationService, IOrganizationServiceCache)

Initializes a new instance of the CachedOrganizationService class.

System_CAPS_pubmethod CachedOrganizationService(IOrganizationService, String)

Initializes a new instance of the CachedOrganizationService class.

System_CAPS_pubmethod CachedOrganizationService(String)

Initializes a new instance of the CachedOrganizationService class.

System_CAPS_pubmethod CachedOrganizationService(String, IOrganizationServiceCache)

Initializes a new instance of the CachedOrganizationService class.

Properties

Name Description
System_CAPS_pubproperty Cache

Gets the cache.

System_CAPS_pubproperty InnerService

(Inherited from OrganizationService.)

Methods

Name Description
System_CAPS_pubmethod Associate(String, Guid, Relationship, EntityReferenceCollection)

Creates a link between records. (Developer Extensions)(Inherited from OrganizationService.)

System_CAPS_protmethod CheckIfTokenIsExpired(SecurityTokenResponse, Nullable<TimeSpan>)

(Inherited from OrganizationService.)

System_CAPS_pubmethod Create(Entity)

Creates a record. (Developer Extensions)(Overrides OrganizationService.Create(Entity).)

System_CAPS_protmethod CreateServiceConfiguration(CrmConnection)

(Inherited from OrganizationService.)

System_CAPS_protmethod CreateUserTokenResponse(CrmConnection, IServiceConfiguration<IOrganizationService>)

(Inherited from OrganizationService.)

System_CAPS_pubmethod Delete(String, Guid)

Deletes a record. (Developer Extensions)(Overrides OrganizationService.Delete(String, Guid).)

System_CAPS_pubmethod Disassociate(String, Guid, Relationship, EntityReferenceCollection)

Deletes a link between records. (Developer Extensions)(Inherited from OrganizationService.)

System_CAPS_pubmethod Dispose()

(Inherited from OrganizationService.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod Execute(OrganizationRequest)

Executes a message in the form of a request, and returns a response. (Developer Extensions)(Overrides OrganizationService.Execute(OrganizationRequest).)

System_CAPS_pubmethod Execute<T>(OrganizationRequest, Func<OrganizationResponse, T>, String)

Executes a message in the form of a request, and returns a response. (Developer Extensions)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_protmethod GetServiceConfiguration(CrmConnection)

(Inherited from OrganizationService.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod GetUserTokenResponse(CrmConnection, IServiceConfiguration<IOrganizationService>)

(Inherited from OrganizationService.)

System_CAPS_pubmethod Initialize(String, NameValueCollection)

(Inherited from OrganizationService.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod RegisterDeviceCredentials(ClientCredentials)

(Inherited from OrganizationService.)

System_CAPS_pubmethod Retrieve(String, Guid, ColumnSet)

Retrieves a record. (Developer Extensions)(Overrides OrganizationService.Retrieve(String, Guid, ColumnSet).)

System_CAPS_pubmethod RetrieveMultiple(QueryBase)

Retrieves a collection of records. (Developer Extensions)(Overrides OrganizationService.RetrieveMultiple(QueryBase).)

System_CAPS_protmethod ToOrganizationService(CrmConnection)

(Inherited from OrganizationService.)

System_CAPS_protmethod ToOrganizationServiceProxy(CrmConnection)

(Inherited from OrganizationService.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod Update(Entity)

Updates an existing record. (Developer Extensions)(Overrides OrganizationService.Update(Entity).)

Extension Methods

Name Description
System_CAPS_pubmethod Execute<TResponse>(OrganizationRequest)

Extensions to the core Execute method. (Developer Extensions)(Defined by OrganizationServiceExtensions.)

System_CAPS_pubmethod FetchXmlToQueryExpression(String)

Extensions to the core FetchXmlToQueryExpressionRequest message. (Developer Extensions) (Developer Extensions)(Defined by OrganizationServiceExtensions.)

System_CAPS_pubmethod RetrieveEntity(RetrieveEntityRequest)

Overloaded. (Defined by OrganizationServiceExtensions.)

System_CAPS_pubmethod RetrieveEntity(String, EntityFilters, Boolean)

Overloaded. (Defined by OrganizationServiceExtensions.)

System_CAPS_pubmethod RetrieveMultiple(RetrieveMultipleRequest)

Overloaded. Extensions to the core RetrieveMultiple method. (Developer Extensions)(Defined by OrganizationServiceExtensions.)

System_CAPS_pubmethod SerializeByJson(IEnumerable<Type>)

Serialize an object using the DataContractJsonSerializer.(Defined by ObjectExtensions.)

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Xrm.Client.Services Namespace
Developer extensions for Microsoft Dynamics CRM 2013
Developer extensions context object model (Dynamics CRM 2013)

Return to top