Initialize() public method

public Initialize ( IUuidGenerator uuidGenerator ) : bool
uuidGenerator IUuidGenerator
return bool
示例#1
0
        public static void ReportOn(string path, string tableName)
        {
            using (var transactionalStorage = new TransactionalStorage(new RavenConfiguration
            {
                DataDirectory = path,
                Settings =
                {
                    { Constants.Esent.LogFileSize, "1"}
                }
            }, () => { }, () => { }, () => { }, () => { }))
            {
                transactionalStorage.Initialize(new DummyUuidGenerator(), new OrderedPartCollection<AbstractDocumentCodec>());

                ReportOn(transactionalStorage, tableName, path);
            }
        }
示例#2
0
		public static List<string> ReportOn(string path)
		{
			using (var transactionalStorage = new TransactionalStorage(new RavenConfiguration
			{
				DataDirectory = path,
				Settings =
				{
					{"Raven/Esent/LogFileSize", "1"}
				}
			}, () => { }, () => { }))
			{
				transactionalStorage.Initialize(new DummyUuidGenerator(), new OrderedPartCollection<AbstractDocumentCodec>());

				return ReportOn(transactionalStorage);
			}
		}