• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IUuidGenerator类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IUuidGenerator的典型用法代码示例。如果您正苦于以下问题:C# IUuidGenerator类的具体用法?C# IUuidGenerator怎么用?C# IUuidGenerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IUuidGenerator类属于命名空间,在下文中一共展示了IUuidGenerator类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: QueueStorageActions

 public QueueStorageActions(TableStorage tableStorage, IUuidGenerator generator, Reference<SnapshotReader> snapshot, Reference<WriteBatch> writeBatch, IBufferPool bufferPool)
     : base(snapshot, bufferPool)
 {
     this.tableStorage = tableStorage;
     this.writeBatch = writeBatch;
     this.generator = generator;
 }
开发者ID:j2jensen,项目名称:ravendb,代码行数:7,代码来源:QueueStorageActions.cs


示例2: DocumentStorageActions

		public DocumentStorageActions(
			JET_INSTANCE instance,
			string database,
			TableColumnsCache tableColumnsCache,
			OrderedPartCollection<AbstractDocumentCodec> documentCodecs,
			IUuidGenerator uuidGenerator,
			IDocumentCacher cacher,
			TransactionalStorage transactionalStorage)
		{
			this.tableColumnsCache = tableColumnsCache;
			this.documentCodecs = documentCodecs;
			this.uuidGenerator = uuidGenerator;
			this.cacher = cacher;
			this.transactionalStorage = transactionalStorage;
			try
			{
				session = new Session(instance);
				transaction = new Transaction(session);
				Api.JetOpenDatabase(session, database, null, out dbid, OpenDatabaseGrbit.None);
			}
			catch (Exception)
			{
				Dispose();
				throw;
			}
		}
开发者ID:carlosagsmendes,项目名称:ravendb,代码行数:26,代码来源:General.cs


示例3: MessagesStorageActions

 public MessagesStorageActions(Table messages, Table pendingMessages, QueuesStorageActions queuesStorageActions, IUuidGenerator uuidGenerator)
 {
     this.messages = messages;
     this.pendingMessages = pendingMessages;
     this.queuesStorageActions = queuesStorageActions;
     this.uuidGenerator = uuidGenerator;
 }
开发者ID:nieve,项目名称:ravenmq,代码行数:7,代码来源:MessagesStorageActions.cs


示例4: DocumentsStorageActions

 public DocumentsStorageActions(TableStorage storage, ITransactionStorageActions transactionStorageActions, IUuidGenerator generator, IEnumerable<AbstractDocumentCodec> documentCodecs)
 {
     this.storage = storage;
     this.transactionStorageActions = transactionStorageActions;
     this.generator = generator;
     this.documentCodecs = documentCodecs;
 }
开发者ID:andrewdavey,项目名称:ravendb,代码行数:7,代码来源:DocumentsStorageActions.cs


示例5: ActionsBase

 protected ActionsBase(DocumentDatabase database, SizeLimitedConcurrentDictionary<string, TouchedDocumentInfo> recentTouches, IUuidGenerator uuidGenerator, ILog log)
 {
     Database = database;
     RecentTouches = recentTouches;
     UuidGenerator = uuidGenerator;
     Log = log;
 }
开发者ID:j2jensen,项目名称:ravendb,代码行数:7,代码来源:ActionsBase.cs


示例6: StorageActionsAccessor

 public StorageActionsAccessor(QueuesStorage queuesStroage, IUuidGenerator uuidGenerator)
 {
     Items = new Dictionary<object, List<object>>();
     Queues = new QueuesStorageActions(queuesStroage.Queues);
     Messages = new MessagesStorageActions(queuesStroage.Messages, queuesStroage.PendingMessages, Queues, uuidGenerator);
     General = new GeneralStorageActions(queuesStroage.Identity);
 }
开发者ID:nieve,项目名称:ravenmq,代码行数:7,代码来源:StorageActionsAccessor.cs


示例7: MappedResultsStorageActions

        public MappedResultsStorageActions(TableStorage tableStorage, IUuidGenerator generator, OrderedPartCollection<AbstractDocumentCodec> documentCodecs, Reference<SnapshotReader> snapshot, Reference<WriteBatch> writeBatch, IBufferPool bufferPool)
			: base(snapshot, bufferPool)
		{
			this.tableStorage = tableStorage;
			this.generator = generator;
			this.documentCodecs = documentCodecs;
			this.writeBatch = writeBatch;
		}
开发者ID:cocytus,项目名称:ravendb,代码行数:8,代码来源:MappedResultsStorageActions.cs


示例8: IndexingStorageActions

        public IndexingStorageActions(TableStorage tableStorage, IUuidGenerator generator, Reference<SnapshotReader> snapshot, Reference<WriteBatch> writeBatch, IStorageActionsAccessor storageActionsAccessor, IBufferPool bufferPool)
			: base(snapshot, bufferPool)
		{
			this.tableStorage = tableStorage;
			this.generator = generator;
			this.writeBatch = writeBatch;
			this.currentStorageActionsAccessor = storageActionsAccessor;
		}
开发者ID:bbqchickenrobot,项目名称:ravendb,代码行数:8,代码来源:IndexingStorageActions.cs


示例9: DeleteDocumentInTransaction

 public override void DeleteDocumentInTransaction(
     TransactionInformation transactionInformation,
     string key,
     Etag etag,
     Etag committedEtag,
     IUuidGenerator uuidGenerator)
 {
     throw new InvalidOperationException("DTC is not supported by " + storageName + " storage.");
 }
开发者ID:j2jensen,项目名称:ravendb,代码行数:9,代码来源:DtcNotSupportedTransactionalState.cs


示例10: ActionsBase

 protected ActionsBase(DocumentDatabase database, SizeLimitedConcurrentDictionary<string, TouchedDocumentInfo> recentTouches, IUuidGenerator uuidGenerator, ILog log)
 {
     Database = database;
     RecentTouches = recentTouches;
     UuidGenerator = uuidGenerator;
     Log = log;
     TransactionalStorage = database.TransactionalStorage;
     WorkContext = database.WorkContext;
     IndexDefinitionStorage = database.IndexDefinitionStorage;
 }
开发者ID:WimVergouwe,项目名称:ravendb,代码行数:10,代码来源:ActionsBase.cs


示例11: MappedResultsStorageActions

        public MappedResultsStorageActions(TableStorage tableStorage, IUuidGenerator generator, OrderedPartCollection<AbstractDocumentCodec> documentCodecs, Reference<SnapshotReader> snapshot, 
			Reference<WriteBatch> writeBatch, IBufferPool bufferPool, IStorageActionsAccessor storageActionsAccessor, ConcurrentDictionary<int, RemainingReductionPerLevel> ScheduledReductionsPerViewAndLevel)
			: base(snapshot, bufferPool)
		{
			this.tableStorage = tableStorage;
			this.generator = generator;
			this.documentCodecs = documentCodecs;
			this.writeBatch = writeBatch;
	        this.storageActionsAccessor = storageActionsAccessor;
	        this.scheduledReductionsPerViewAndLevel = ScheduledReductionsPerViewAndLevel;
		}
开发者ID:VPashkov,项目名称:ravendb,代码行数:11,代码来源:MappedResultsStorageActions.cs


示例12: DocumentStorageActions

		public DocumentStorageActions(
			JET_INSTANCE instance,
			string database,
			TableColumnsCache tableColumnsCache,
			OrderedPartCollection<AbstractDocumentCodec> documentCodecs,
			IUuidGenerator uuidGenerator,
			IDocumentCacher cacher,
			EsentTransactionContext transactionContext,
			TransactionalStorage transactionalStorage)
		{
			this.tableColumnsCache = tableColumnsCache;
			this.documentCodecs = documentCodecs;
			this.uuidGenerator = uuidGenerator;
			this.cacher = cacher;
			this.transactionalStorage = transactionalStorage;
			this.transactionContext = transactionContext;

			try
			{
				if (transactionContext == null)
				{
					session = new Session(instance);
					transaction = new Transaction(session);
					sessionAndTransactionDisposer = () =>
					{
						if(transaction != null)
							transaction.Dispose();
						if(session != null)
							session.Dispose();
					};
				}
				else
				{
					session = transactionContext.Session;
					transaction = transactionContext.Transaction;
					var disposable = transactionContext.EnterSessionContext();
					sessionAndTransactionDisposer = disposable.Dispose;
				}
				Api.JetOpenDatabase(session, database, null, out dbid, OpenDatabaseGrbit.None);
			}
			catch (Exception ex)
			{
			    logger.WarnException("Error when trying to open a new DocumentStorageActions", ex);
			    try
			    {
			        Dispose();
			    }
			    catch (Exception e)
			    {
			        logger.WarnException("Error on dispose when the ctor threw an exception, resources may have leaked", e);
			    }
				throw;
			}
		}
开发者ID:925coder,项目名称:ravendb,代码行数:54,代码来源:General.cs


示例13: AddDocumentInTransaction

 public override Etag AddDocumentInTransaction(
     string key,
     Etag etag,
     RavenJObject data,
     RavenJObject metadata,
     TransactionInformation transactionInformation,
     Etag committedEtag,
     IUuidGenerator uuidGenerator)
 {
     throw new InvalidOperationException("DTC is not supported by " + storageName + " storage.");
 }
开发者ID:j2jensen,项目名称:ravendb,代码行数:11,代码来源:DtcNotSupportedTransactionalState.cs


示例14: StorageActionsAccessor

		public StorageActionsAccessor(TableStorage storage, IUuidGenerator generator, OrderedPartCollection<AbstractDocumentCodec> documentCodecs, IDocumentCacher documentCacher)
		{
			General = new GeneralStorageActions(storage);
			Attachments = new AttachmentsStorageActions(storage, generator);
			Transactions = new TransactionStorageActions(storage, generator, documentCodecs);
			Documents = new DocumentsStorageActions(storage, Transactions, generator, documentCodecs, documentCacher);
			Indexing = new IndexingStorageActions(storage);
			MappedResults = new MappedResultsStorageAction(storage, generator);
			Queue = new QueueStorageActions(storage, generator);
			Tasks = new TasksStorageActions(storage, generator);
			Staleness = new StalenessStorageActions(storage);
		}
开发者ID:JPT123,项目名称:ravendb,代码行数:12,代码来源:StorageActionsAccessor.cs


示例15: StorageActionsAccessor

 public StorageActionsAccessor(TableStorage storage, IUuidGenerator generator)
 {
     General = new GeneralStorageActions(storage);
     Attachments = new AttachmentsStorageActions(storage, generator);
     Transactions = new TransactionStorageActions(storage, generator);
     Documents = new DocumentsStorageActions(storage, Transactions, generator);
     Indexing = new IndexingStorageActions(storage);
     MappedResults = new MappedResultsStorageAction(storage, generator);
     Queue = new QueueStorageActions(storage, generator);
     Tasks = new TasksStorageActions(storage, generator);
     Staleness = new StalenessStorageActions(storage);
 }
开发者ID:VirtueMe,项目名称:ravendb,代码行数:12,代码来源:StorageActionsAccessor.cs


示例16: StorageActionsAccessor

 public StorageActionsAccessor(TableStorage storage, IUuidGenerator generator, IEnumerable<AbstractDocumentCodec> documentCodecs)
 {
     this.documentCodecs = documentCodecs;
     General = new GeneralStorageActions(storage);
     Attachments = new AttachmentsStorageActions(storage, generator);
     Transactions = new TransactionStorageActions(storage, generator, documentCodecs);
     Documents = new DocumentsStorageActions(storage, Transactions, generator, documentCodecs);
     Indexing = new IndexingStorageActions(storage);
     MappedResults = new MappedResultsStorageAction(storage, generator);
     Queue = new QueueStorageActions(storage, generator);
     Tasks = new TasksStorageActions(storage, generator);
     Staleness = new StalenessStorageActions(storage);
 }
开发者ID:vinone,项目名称:ravendb,代码行数:13,代码来源:StorageActionsAccessor.cs


示例17: DocumentsStorageActions

		public DocumentsStorageActions(IUuidGenerator uuidGenerator,
			OrderedPartCollection<AbstractDocumentCodec> documentCodecs,
			IDocumentCacher documentCacher,
			Reference<WriteBatch> writeBatch,
			Reference<SnapshotReader> snapshot,
            TableStorage tableStorage, 
            IBufferPool bufferPool)
			: base(snapshot, bufferPool)
		{
			this.uuidGenerator = uuidGenerator;
			this.documentCodecs = documentCodecs;
			this.documentCacher = documentCacher;
			this.writeBatch = writeBatch;
			this.tableStorage = tableStorage;

			metadataIndex = tableStorage.Documents.GetIndex(Tables.Documents.Indices.Metadata);
		}
开发者ID:cocytus,项目名称:ravendb,代码行数:17,代码来源:DocumentsStorageActions.cs


示例18: AttachmentsStorageActions

        public AttachmentsStorageActions(Table attachmentsTable,
                                         Reference<WriteBatch> writeBatch, 
                                         Reference<SnapshotReader> snapshot, 
                                         IUuidGenerator uuidGenerator, 
                                         TableStorage tableStorage,
                                         Raven.Storage.Voron.TransactionalStorage transactionalStorage, 
                                         IBufferPool bufferPool)
            :base(snapshot, bufferPool)
        {
            this.attachmentsTable = attachmentsTable;
            this.writeBatch = writeBatch;
            this.uuidGenerator = uuidGenerator;
            this.tableStorage = tableStorage;
            this.transactionalStorage = transactionalStorage;

            metadataIndex = tableStorage.Attachments.GetIndex(Tables.Attachments.Indices.Metadata);
        }
开发者ID:j2jensen,项目名称:ravendb,代码行数:17,代码来源:AttachmentsStorageActions.cs


示例19: DocumentStorageActions

        /*[CLSCompliant(false)]
        [DebuggerHidden, DebuggerNonUserCode, DebuggerStepThrough]*/
        public DocumentStorageActions(
            JET_INSTANCE _instance,
            string _database,
            TableColumnsCache _tableColumnsCache,
            IEnumerable<AbstractDocumentCodec> _documentCodecs,
            IUuidGenerator _uuidGenerator)
        {
            this.tableColumnsCache = _tableColumnsCache;
            this.documentCodecs = _documentCodecs;
            this.uuidGenerator = _uuidGenerator;
            OnCommit = delegate {};

            try
            {
                session = new Session(_instance);
                transaction = new Transaction(session);
                Api.JetOpenDatabase(session, _database, null, out dbid, OpenDatabaseGrbit.None);
            }
            catch
            {
                Dispose();
                throw;
            }
        }
开发者ID:vinone,项目名称:ravendb,代码行数:26,代码来源:General.cs


示例20: Initialize

		public void Initialize(IUuidGenerator generator, OrderedPartCollection<AbstractDocumentCodec> documentCodecs)
		{
		    if (generator == null) throw new ArgumentNullException("generator");
		    if (documentCodecs == null) throw new ArgumentNullException("documentCodecs");

		    uuidGenerator = generator;
		    _documentCodecs = documentCodecs;

		    StorageEnvironmentOptions options = configuration.RunInMemory ?
				CreateMemoryStorageOptionsFromConfiguration(configuration) :
		        CreateStorageOptionsFromConfiguration(configuration);

		    tableStorage = new TableStorage(options, bufferPool);
			var schemaCreator = new SchemaCreator(configuration, tableStorage, Output, Log);
			schemaCreator.CreateSchema();
			schemaCreator.SetupDatabaseIdAndSchemaVersion();
			schemaCreator.UpdateSchemaIfNecessary();

		    SetupDatabaseId();
		}
开发者ID:mdavis,项目名称:ravendb,代码行数:20,代码来源:TransactionalStorage.cs



注:本文中的IUuidGenerator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IVRPProblemInstance类代码示例发布时间:2022-05-24
下一篇:
C# IUsersService类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap