protected MsmqIntegrationInputMessage(SizeQuota bufferSizeQuota)
     : base(22, bufferSizeQuota)
 {
     this.acknowledge      = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_ACKNOWLEDGE);
     this.adminQueue       = new StringProperty(this, UnsafeNativeMethods.PROPID_M_ADMIN_QUEUE, initialQueueNameLength);
     this.adminQueueLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_ADMIN_QUEUE_LEN, initialQueueNameLength);
     this.appSpecific      = new IntProperty(this, UnsafeNativeMethods.PROPID_M_APPSPECIFIC);
     this.arrivedTime      = new IntProperty(this, UnsafeNativeMethods.PROPID_M_ARRIVEDTIME);
     this.senderIdType     = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENDERID_TYPE);
     this.authenticated    = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_AUTHENTICATED);
     this.bodyType         = new IntProperty(this, UnsafeNativeMethods.PROPID_M_BODY_TYPE);
     this.correlationId    = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_CORRELATIONID,
                                                UnsafeNativeMethods.PROPID_M_CORRELATIONID_SIZE);
     this.destinationQueue       = new StringProperty(this, UnsafeNativeMethods.PROPID_M_DEST_FORMAT_NAME, initialQueueNameLength);
     this.destinationQueueLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_DEST_FORMAT_NAME_LEN, initialQueueNameLength);
     this.extension = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_EXTENSION,
                                         bufferSizeQuota.AllocIfAvailable(initialExtensionLength));
     this.extensionLength          = new IntProperty(this, UnsafeNativeMethods.PROPID_M_EXTENSION_LEN, initialExtensionLength);
     this.label                    = new StringProperty(this, UnsafeNativeMethods.PROPID_M_LABEL, initialLabelLength);
     this.labelLength              = new IntProperty(this, UnsafeNativeMethods.PROPID_M_LABEL_LEN, initialLabelLength);
     this.priority                 = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_PRIORITY);
     this.responseFormatName       = new StringProperty(this, UnsafeNativeMethods.PROPID_M_RESP_FORMAT_NAME, initialQueueNameLength);
     this.responseFormatNameLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_RESP_FORMAT_NAME_LEN, initialQueueNameLength);
     this.sentTime                 = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENTTIME);
     this.timeToReachQueue         = new IntProperty(this, UnsafeNativeMethods.PROPID_M_TIME_TO_REACH_QUEUE);
     this.privacyLevel             = new IntProperty(this, UnsafeNativeMethods.PROPID_M_PRIV_LEVEL);
 }
 protected MsmqIntegrationInputMessage(SizeQuota bufferSizeQuota)
     : base(22, bufferSizeQuota)
 {
     this.acknowledge = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_ACKNOWLEDGE);
     this.adminQueue = new StringProperty(this, UnsafeNativeMethods.PROPID_M_ADMIN_QUEUE, initialQueueNameLength);
     this.adminQueueLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_ADMIN_QUEUE_LEN, initialQueueNameLength);
     this.appSpecific = new IntProperty(this, UnsafeNativeMethods.PROPID_M_APPSPECIFIC);
     this.arrivedTime = new IntProperty(this, UnsafeNativeMethods.PROPID_M_ARRIVEDTIME);
     this.senderIdType = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENDERID_TYPE);
     this.authenticated = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_AUTHENTICATED);
     this.bodyType = new IntProperty(this, UnsafeNativeMethods.PROPID_M_BODY_TYPE);
     this.correlationId = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_CORRELATIONID,
                                             UnsafeNativeMethods.PROPID_M_CORRELATIONID_SIZE);
     this.destinationQueue = new StringProperty(this, UnsafeNativeMethods.PROPID_M_DEST_FORMAT_NAME, initialQueueNameLength);
     this.destinationQueueLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_DEST_FORMAT_NAME_LEN, initialQueueNameLength);
     this.extension = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_EXTENSION,
                                         bufferSizeQuota.AllocIfAvailable(initialExtensionLength));
     this.extensionLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_EXTENSION_LEN, initialExtensionLength);
     this.label = new StringProperty(this, UnsafeNativeMethods.PROPID_M_LABEL, initialLabelLength);
     this.labelLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_LABEL_LEN, initialLabelLength);
     this.priority = new ByteProperty(this, UnsafeNativeMethods.PROPID_M_PRIORITY);
     this.responseFormatName = new StringProperty(this, UnsafeNativeMethods.PROPID_M_RESP_FORMAT_NAME, initialQueueNameLength);
     this.responseFormatNameLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_RESP_FORMAT_NAME_LEN, initialQueueNameLength);
     this.sentTime = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENTTIME);
     this.timeToReachQueue = new IntProperty(this, UnsafeNativeMethods.PROPID_M_TIME_TO_REACH_QUEUE);
     this.privacyLevel = new IntProperty(this, UnsafeNativeMethods.PROPID_M_PRIV_LEVEL);
 }
 protected MsmqInputMessage(int additionalPropertyCount, SizeQuota bufferSizeQuota) : base(12 + additionalPropertyCount)
 {
     this.maxBufferSize = bufferSizeQuota.MaxSize;
     this.body = new NativeMsmqMessage.BufferProperty(this, 9, bufferSizeQuota.AllocIfAvailable(0x1000));
     this.bodyLength = new NativeMsmqMessage.IntProperty(this, 10);
     this.messageId = new NativeMsmqMessage.BufferProperty(this, 2, 20);
     this.lookupId = new NativeMsmqMessage.LongProperty(this, 60);
     this.cls = new NativeMsmqMessage.ShortProperty(this, 1);
     this.senderId = new NativeMsmqMessage.BufferProperty(this, 20, 0x100);
     this.senderIdLength = new NativeMsmqMessage.IntProperty(this, 0x15);
     this.senderCertificate = new NativeMsmqMessage.BufferProperty(this, 0x1c, bufferSizeQuota.AllocIfAvailable(0x1000));
     this.senderCertificateLength = new NativeMsmqMessage.IntProperty(this, 0x1d);
     if (Msmq.IsAdvancedPoisonHandlingSupported)
     {
         this.lastMovedTime = new NativeMsmqMessage.IntProperty(this, 0x4b);
         this.abortCount = new NativeMsmqMessage.IntProperty(this, 0x45);
         this.moveCount = new NativeMsmqMessage.IntProperty(this, 70);
     }
 }
 protected MsmqInputMessage(int additionalPropertyCount, SizeQuota bufferSizeQuota)
     : base(12 + additionalPropertyCount)
 {
     this.maxBufferSize = bufferSizeQuota.MaxSize;
     this.body = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_BODY,
         bufferSizeQuota.AllocIfAvailable(initialBodySize));
     this.bodyLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_BODY_SIZE);
     this.messageId = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_MSGID,
         UnsafeNativeMethods.PROPID_M_MSGID_SIZE);
     this.lookupId = new LongProperty(this, UnsafeNativeMethods.PROPID_M_LOOKUPID);
     this.cls = new ShortProperty(this, UnsafeNativeMethods.PROPID_M_CLASS);
     this.senderId = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_SENDERID, initialSenderIdSize);
     this.senderIdLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENDERID_LEN);
     this.senderCertificate = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_SENDER_CERT,
         bufferSizeQuota.AllocIfAvailable(initialCertificateSize));
     this.senderCertificateLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENDER_CERT_LEN);
     if (Msmq.IsAdvancedPoisonHandlingSupported)
     {
         this.lastMovedTime = new IntProperty(this, UnsafeNativeMethods.PROPID_M_LAST_MOVE_TIME);
         this.abortCount = new IntProperty(this, UnsafeNativeMethods.PROPID_M_ABORT_COUNT);
         this.moveCount = new IntProperty(this, UnsafeNativeMethods.PROPID_M_MOVE_COUNT);
     }
 }
 protected MsmqInputMessage(int additionalPropertyCount, SizeQuota bufferSizeQuota)
     : base(12 + additionalPropertyCount)
 {
     this.maxBufferSize = bufferSizeQuota.MaxSize;
     this.body          = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_BODY,
                                             bufferSizeQuota.AllocIfAvailable(initialBodySize));
     this.bodyLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_BODY_SIZE);
     this.messageId  = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_MSGID,
                                          UnsafeNativeMethods.PROPID_M_MSGID_SIZE);
     this.lookupId          = new LongProperty(this, UnsafeNativeMethods.PROPID_M_LOOKUPID);
     this.cls               = new ShortProperty(this, UnsafeNativeMethods.PROPID_M_CLASS);
     this.senderId          = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_SENDERID, initialSenderIdSize);
     this.senderIdLength    = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENDERID_LEN);
     this.senderCertificate = new BufferProperty(this, UnsafeNativeMethods.PROPID_M_SENDER_CERT,
                                                 bufferSizeQuota.AllocIfAvailable(initialCertificateSize));
     this.senderCertificateLength = new IntProperty(this, UnsafeNativeMethods.PROPID_M_SENDER_CERT_LEN);
     if (Msmq.IsAdvancedPoisonHandlingSupported)
     {
         this.lastMovedTime = new IntProperty(this, UnsafeNativeMethods.PROPID_M_LAST_MOVE_TIME);
         this.abortCount    = new IntProperty(this, UnsafeNativeMethods.PROPID_M_ABORT_COUNT);
         this.moveCount     = new IntProperty(this, UnsafeNativeMethods.PROPID_M_MOVE_COUNT);
     }
 }
Beispiel #6
0
 protected MsmqInputMessage(int additionalPropertyCount, SizeQuota bufferSizeQuota) : base(12 + additionalPropertyCount)
 {
     this.maxBufferSize           = bufferSizeQuota.MaxSize;
     this.body                    = new NativeMsmqMessage.BufferProperty(this, 9, bufferSizeQuota.AllocIfAvailable(0x1000));
     this.bodyLength              = new NativeMsmqMessage.IntProperty(this, 10);
     this.messageId               = new NativeMsmqMessage.BufferProperty(this, 2, 20);
     this.lookupId                = new NativeMsmqMessage.LongProperty(this, 60);
     this.cls                     = new NativeMsmqMessage.ShortProperty(this, 1);
     this.senderId                = new NativeMsmqMessage.BufferProperty(this, 20, 0x100);
     this.senderIdLength          = new NativeMsmqMessage.IntProperty(this, 0x15);
     this.senderCertificate       = new NativeMsmqMessage.BufferProperty(this, 0x1c, bufferSizeQuota.AllocIfAvailable(0x1000));
     this.senderCertificateLength = new NativeMsmqMessage.IntProperty(this, 0x1d);
     if (Msmq.IsAdvancedPoisonHandlingSupported)
     {
         this.lastMovedTime = new NativeMsmqMessage.IntProperty(this, 0x4b);
         this.abortCount    = new NativeMsmqMessage.IntProperty(this, 0x45);
         this.moveCount     = new NativeMsmqMessage.IntProperty(this, 70);
     }
 }