Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 1.07 KB

File metadata and controls

16 lines (14 loc) · 1.07 KB

Russian

Using MEF platform

TotalAPI SDK uses MEF platform. Following code makes composition:

    TotalApiBootstrapper.AppModulesSearchPattern = "myApp.*.dll";
    TotalApiBootstrapper.Create();

Good News: Now you can use MEF in your application for your classes without any extra configuration! Please define wildcard mask for assemblies which contain exported classes in the property AppModulesSearchPattern. If the property is not defined no assemblies would be loaded.(The assembly which contains initialization of MEF will be loaded by default).

Important

  • Please, do not set mask *.dll, in this case it tries to load all assemblies (even system assemblies) what slows down application loading process.
  • Please, do not change SDK file names. All SDK file names masks hard coded as TotalApi.*.dll
  • By default program modules are expected in the same folder where the application binary placed or in subfolders.