/// <summary> /// Initializes a new instance of the <see cref="MsSqlMetadataProvider"/> class. /// </summary> /// <param name="projectId">The project id.</param> /// <param name="connectionString">The connection string.</param> /// <param name="binaryProvider">The default binary provider.</param> /// <param name="supportedBinaryProviders">The supported binary providers.</param> /// <param name="indexStore">The index store.</param> /// <param name="auditReportProvider">The audit report provider.</param> public MsSqlMetadataProvider(string projectId, string connectionString, IBinaryProvider binaryProvider, Dictionary <string, IBinaryProvider> supportedBinaryProviders, IIndexStore indexStore, IAuditReportProvider auditReportProvider) : base(projectId, connectionString, binaryProvider, supportedBinaryProviders, indexStore, auditReportProvider) { Connection = new Connection(projectId, connectionString); FieldStore = new MsSqlFieldStore(Connection); Field = new FieldManager(FieldStore, indexStore, auditReportProvider); FileStore = new MsSqlFileStore(Connection); File = new FileManager(FileStore, binaryProvider, supportedBinaryProviders); DocumentStore = new MsSqlDocumentStore(Connection, (MsSqlFieldStore)FieldStore); Document = new DocumentManager(DocumentStore, FieldStore, indexStore); }
internal MsSqlDocumentStore(Connection connection, MsSqlFieldStore fieldStore) { Connection = connection; FieldStore = fieldStore; InitAsync(CancellationToken.None).Wait(); }