Click or drag to resize

IInProcRepositoryFactory Interface

A factory for repository representations.

Namespace:  PDTec.IceNet.Sdk
Assembly:  PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public interface IInProcRepositoryFactory : IRepositoryFactory

The IInProcRepositoryFactory type exposes the following members.

Properties
  NameDescription
Public propertyEnforceDependencies
Gets or sets a value indicating whether package dependency constraints will be enforced.
Public propertyImplAssemblies
A collection of the Business Objects implementation assemblies that should be used with the repository.
Public propertyImplFactories
A collection of the Business Objects implementation factories that should be used with the repository. This collection overrides factory settings in ImplAssemblies.
Public propertyLicenseFilePath
Gets or sets the path to the license file or the builtinlicense://... URL.
Top
Methods
  NameDescription
Public methodCreateRepository
Creates a repository representation.
(Inherited from IRepositoryFactory.)
Public methodFreezeModel
Freezes the model of the repository.
Top
Examples

The example shows how to create a in-memory repository with file management support.

IInProcFileImplFactory pFileFactory = IceNetSdk.GetInProcFileImplFactory();

pFileFactory.EnforceFileExistence  = false;

pFileFactory.ResolveVaultDirectory += delegate(object sender, ResolveVaultDirectoryEventArgs e)
{
    e.Directory = @"D:\test\inprocvault";
};

IInProcRepositoryFactory pFactory = IceNetSdk.GetInProcRepositoryFactory();

pFactory.ImplFactories.Add(pFileFactory);

IRepository pRepository = pFactory.CreateRepository();
See Also