Example #1
0
        private static EseDatabaseBackupReader OpenSeedStreamer(Guid dbGuid, uint readHintSize, out long initialFileSizeBytes)
        {
            string machineName = Environment.MachineName;

            initialFileSizeBytes = 0L;
            string dbName;
            string sourceFileToBackupFullPath;

            SeedHelper.GetDatabaseNameAndPath(dbGuid, out dbName, out sourceFileToBackupFullPath);
            CReplicaSeederInterop.SetupNativeLogger();
            EseDatabaseBackupReader esedatabaseBackupReader = EseDatabaseBackupReader.GetESEDatabaseBackupReader(machineName, dbName, dbGuid, null, sourceFileToBackupFullPath, readHintSize);

            initialFileSizeBytes = esedatabaseBackupReader.SourceFileSizeBytes;
            return(esedatabaseBackupReader);
        }
 // Token: 0x06001A30 RID: 6704 RVA: 0x0006DE34 File Offset: 0x0006C034
 public static void SetupNativeLogger()
 {
     CReplicaSeederInterop.SetupNativeLogger();
 }