Classes and interfaces

In this section, each class and interface of the concept will be explained in details.

Kipon.Xrm.Attributes.ExportAttribute

This attribute is rarely used, but needed if you have more than one implementation of an injectable service. Then you need to decorate the one and only implementation to be used for injection with the [Export(typeof(interface-implemented))] decorator.

Avoid creating more than one implementation of each interface. If you need to mock services in your unit test, do not create the mock implementation in your plugin library. Instead create these mocks directly in the unittest library.

© Kipon ApS 2020, 2021, 2022, 2023. All content on the page is the property of Kipon ApS. Any republish or copy of this content is a violation. The content of this site is NOT open source, and cannot be copied, republished or used in any context without explcit permission from the owner.