IceNetSdkGetInProcRepositoryFactory Method |
Namespace: PDTec.IceNet.Sdk
public static IInProcRepositoryFactory GetInProcRepositoryFactory()
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();