當前位置: 首頁>>代碼示例>>C#>>正文


C# IO.BsonBinaryWriterSettings類代碼示例

本文整理匯總了C#中MongoDB.Bson.IO.BsonBinaryWriterSettings的典型用法代碼示例。如果您正苦於以下問題:C# BsonBinaryWriterSettings類的具體用法?C# BsonBinaryWriterSettings怎麽用?C# BsonBinaryWriterSettings使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


BsonBinaryWriterSettings類屬於MongoDB.Bson.IO命名空間,在下文中一共展示了BsonBinaryWriterSettings類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Create

 public static BsonWriter Create(
     Stream stream,
     BsonBinaryWriterSettings settings
 )
 {
     return new BsonBinaryWriter(stream, null, BsonBinaryWriterSettings.Defaults);
 }
開發者ID:kenegozi,項目名稱:mongo-csharp-driver,代碼行數:7,代碼來源:BsonWriter.cs

示例2: BulkDeleteOperationArgs

 // constructors
 public BulkDeleteOperationArgs(
     string collectionName,
     string databaseName,
     int maxBatchCount,
     int maxBatchLength,
     int maxDocumentSize,
     int maxWireDocumentSize,
     bool isOrdered,
     BsonBinaryReaderSettings readerSettings,
     IEnumerable<DeleteRequest> requests,
     WriteConcern writeConcern,
     BsonBinaryWriterSettings writerSettings)
     : base(
         collectionName,
         databaseName,
         maxBatchCount,
         maxBatchLength,
         maxDocumentSize,
         maxWireDocumentSize,
         isOrdered,
         readerSettings,
         requests.Cast<WriteRequest>(),
         writeConcern,
         writerSettings)
 {
 }
開發者ID:ExM,項目名稱:mongo-csharp-driver,代碼行數:27,代碼來源:BulkDeleteOperationArgs.cs

示例3: MongoInsertMessage

 // constructors
 internal MongoInsertMessage(BsonBinaryWriterSettings writerSettings, string collectionFullName, bool checkElementNames, InsertFlags flags)
     : base(MessageOpcode.Insert, null, writerSettings)
 {
     this.collectionFullName = collectionFullName;
     this.checkElementNames = checkElementNames;
     this.flags = flags;
 }
開發者ID:kamaradclimber,項目名稱:mongo-csharp-driver,代碼行數:8,代碼來源:MongoInsertMessage.cs

示例4: MongoDeleteMessage

 // constructors
 internal MongoDeleteMessage(BsonBinaryWriterSettings writerSettings, string collectionFullName, RemoveFlags flags, IMongoQuery query)
     : base(MessageOpcode.Delete, null, writerSettings)
 {
     _collectionFullName = collectionFullName;
     _flags = flags;
     _query = query;
 }
開發者ID:moonreplace,項目名稱:mongo-csharp-driver,代碼行數:8,代碼來源:MongoDeleteMessage.cs

示例5: BulkMixedWriteOperation

 // constructors
 public BulkMixedWriteOperation(
     Action<InsertRequest> assignId,
     bool checkElementNames,
     string collectionName,
     string databaseName,
     int maxBatchCount,
     int maxBatchLength,
     int maxDocumentSize,
     int maxWireDocumentSize,
     bool isOrdered,
     BsonBinaryReaderSettings readerSettings,
     IEnumerable<WriteRequest> requests,
     WriteConcern writeConcern,
     BsonBinaryWriterSettings writerSettings)
 {
     _assignId = assignId;
     _checkElementNames = checkElementNames;
     _collectionName = collectionName;
     _databaseName = databaseName;
     _maxBatchCount = maxBatchCount;
     _maxBatchLength = maxBatchLength;
     _maxDocumentSize = maxDocumentSize;
     _maxWireDocumentSize = maxWireDocumentSize;
     _isOrdered = isOrdered;
     _readerSettings = readerSettings;
     _requests = requests;
     _writeConcern = writeConcern;
     _writerSettings = writerSettings;
 }
開發者ID:niemyjski,項目名稱:mongo-csharp-driver,代碼行數:30,代碼來源:BulkMixedWriteOperation.cs

示例6: BulkWriteOperationArgs

 // constructors
 protected BulkWriteOperationArgs(
     string collectionName,
     string databaseName,
     int maxBatchCount,
     int maxBatchLength,
     int maxDocumentSize,
     int maxWireDocumentSize,
     bool isOrdered,
     BsonBinaryReaderSettings readerSettings,
     IEnumerable<WriteRequest> requests,
     WriteConcern writeConcern,
     BsonBinaryWriterSettings writerSettings)
 {
     _collectionName = collectionName;
     _databaseName = databaseName;
     _maxBatchCount = maxBatchCount;
     _maxBatchLength = maxBatchLength;
     _maxDocumentSize = maxDocumentSize;
     _maxWireDocumentSize = maxWireDocumentSize;
     _isOrdered = isOrdered;
     _readerSettings = readerSettings;
     _requests = requests;
     _writeConcern = writeConcern;
     _writerSettings = writerSettings;
 }
開發者ID:niemyjski,項目名稱:mongo-csharp-driver,代碼行數:26,代碼來源:BulkWriteOperationArgs.cs

示例7: MongoInsertMessage

 internal MongoInsertMessage(
     BsonBinaryWriterSettings writerSettings,
     string collectionFullName
 )
     : base(MessageOpcode.Insert, null, writerSettings) {
     this.collectionFullName = collectionFullName;
 }
開發者ID:emiaj,項目名稱:mongo-csharp-driver,代碼行數:7,代碼來源:MongoInsertMessage.cs

示例8: BulkInsertOperationArgs

 // constructors
 public BulkInsertOperationArgs(
     Action<InsertRequest> assignId,
     bool checkElementNames,
     string collectionName,
     string databaseName,
     int maxBatchCount,
     int maxBatchLength,
     int maxDocumentSize,
     int maxWireDocumentSize,
     bool isOrdered,
     BsonBinaryReaderSettings readerSettings,
     IEnumerable<InsertRequest> requests,
     WriteConcern writeConcern,
     BsonBinaryWriterSettings writerSettings)
     : base(
         collectionName,
         databaseName,
         maxBatchCount,
         maxBatchLength,
         maxDocumentSize,
         maxWireDocumentSize,
         isOrdered,
         readerSettings,
         requests.Cast<WriteRequest>(),
         writeConcern,
         writerSettings)
 {
     _assignId = assignId;
     _checkElementNames = checkElementNames;
 }
開發者ID:nsavga,項目名稱:mongo-csharp-driver,代碼行數:31,代碼來源:BulkInsertOperationArgs.cs

示例9: MongoRequestMessage

        private int _messageStartPosition = -1; // start position in buffer for backpatching messageLength

        // constructors
        protected MongoRequestMessage(
            MessageOpcode opcode,
            BsonBinaryWriterSettings writerSettings)
            : base(opcode)
        {
            _writerSettings = writerSettings;
            RequestId = Interlocked.Increment(ref __lastRequestId);
        }
開發者ID:einaregilsson,項目名稱:mongo-csharp-driver,代碼行數:11,代碼來源:MongoRequestMessage.cs

示例10: ReadOperationBase

 protected ReadOperationBase(
     string databaseName,
     string collectionName,
     BsonBinaryReaderSettings readerSettings,
     BsonBinaryWriterSettings writerSettings)
     : base(databaseName, collectionName, readerSettings, writerSettings)
 {
 }
開發者ID:GGsus,項目名稱:mongo-csharp-driver,代碼行數:8,代碼來源:ReadOperationBase.cs

示例11: MongoUpdateMessage

 // constructors
 internal MongoUpdateMessage(BsonBinaryWriterSettings writerSettings, string collectionFullName, bool checkUpdateDocument, UpdateFlags flags, IMongoQuery query, IMongoUpdate update)
     : base(MessageOpcode.Update, null, writerSettings)
 {
     this.collectionFullName = collectionFullName;
     this.checkUpdateDocument = checkUpdateDocument;
     this.flags = flags;
     this.query = query;
     this.update = update;
 }
開發者ID:kamaradclimber,項目名稱:mongo-csharp-driver,代碼行數:10,代碼來源:MongoUpdateMessage.cs

示例12: WriteOpcodeOperationBase

 protected WriteOpcodeOperationBase(
     string databaseName,
     string collectionName,
     BsonBinaryReaderSettings readerSettings,
     BsonBinaryWriterSettings writerSettings,
     WriteConcern writeConcern)
     : base(databaseName, collectionName, readerSettings, writerSettings)
 {
     _writeConcern = writeConcern;
 }
開發者ID:Nakro,項目名稱:mongo-csharp-driver,代碼行數:10,代碼來源:WriteOpcodeOperationBase.cs

示例13: MongoQueryMessage

 internal MongoQueryMessage(BsonBuffer buffer, BsonBinaryWriterSettings writerSettings, string collectionFullName, QueryFlags flags, int numberToSkip, int numberToReturn, IMongoQuery query, IMongoFields fields)
     : base(MessageOpcode.Query, buffer, writerSettings)
 {
     this.collectionFullName = collectionFullName;
     this.flags = flags;
     this.numberToSkip = numberToSkip;
     this.numberToReturn = numberToReturn;
     this.query = query;
     this.fields = fields;
 }
開發者ID:kamaradclimber,項目名稱:mongo-csharp-driver,代碼行數:10,代碼來源:MongoQueryMessage.cs

示例14: MongoQueryMessage

 // constructors
 internal MongoQueryMessage(
     BsonBinaryWriterSettings writerSettings,
     string collectionFullName,
     QueryFlags flags,
     int numberToSkip,
     int numberToReturn,
     IMongoQuery query,
     IMongoFields fields)
     : this(null, writerSettings, collectionFullName, flags, numberToSkip, numberToReturn, query, fields)
 {
 }
開發者ID:CloudMetal,項目名稱:mongo-csharp-driver,代碼行數:12,代碼來源:MongoQueryMessage.cs

示例15: DatabaseOperation

 protected DatabaseOperation(
     string databaseName,
     string collectionName,
     BsonBinaryReaderSettings readerSettings,
     BsonBinaryWriterSettings writerSettings)
 {
     _databaseName = databaseName;
     _collectionName = collectionName;
     _readerSettings = (BsonBinaryReaderSettings)readerSettings.FrozenCopy();
     _writerSettings = (BsonBinaryWriterSettings)writerSettings.FrozenCopy();
 }
開發者ID:jlyonsmith,項目名稱:mongo-csharp-driver,代碼行數:11,代碼來源:DatabaseOperation.cs


注:本文中的MongoDB.Bson.IO.BsonBinaryWriterSettings類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。