| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.ComponentModel; |
| | | 6 | | |
| | | 7 | | namespace CoreWCF.Channels |
| | | 8 | | { |
| | | 9 | | public abstract class MsmqBindingBase : Binding |
| | | 10 | | { |
| | | 11 | | internal MsmqBindingElementBase _transport; |
| | | 12 | | |
| | 0 | 13 | | protected MsmqBindingBase() |
| | 0 | 14 | | { } |
| | | 15 | | |
| | | 16 | | // todo: need to be enabled when we add System.Transactions support |
| | | 17 | | // [DefaultValue(typeof(System.TimeSpan), MsmqDefaults.ValidityDurationString)] |
| | | 18 | | //public TimeSpan ValidityDuration |
| | | 19 | | //{ |
| | | 20 | | // get { return transport.ValidityDuration; } |
| | | 21 | | // set { transport.ValidityDuration = value; } |
| | | 22 | | //} |
| | | 23 | | |
| | | 24 | | [DefaultValue(MsmqDefaults.CustomDeadLetterQueue)] |
| | | 25 | | public Uri CustomDeadLetterQueue |
| | | 26 | | { |
| | 0 | 27 | | get { return _transport.CustomDeadLetterQueue; } |
| | 0 | 28 | | set { _transport.CustomDeadLetterQueue = value; } |
| | | 29 | | } |
| | | 30 | | |
| | | 31 | | [DefaultValue(MsmqDefaults.DeadLetterQueue)] |
| | | 32 | | public DeadLetterQueue DeadLetterQueue |
| | | 33 | | { |
| | 0 | 34 | | get { return _transport.DeadLetterQueue; } |
| | 0 | 35 | | set { _transport.DeadLetterQueue = value; } |
| | | 36 | | } |
| | | 37 | | |
| | | 38 | | [DefaultValue(MsmqDefaults.ExactlyOnce)] |
| | | 39 | | public bool ExactlyOnce |
| | | 40 | | { |
| | 0 | 41 | | get { return _transport.ExactlyOnce; } |
| | 0 | 42 | | set { _transport.ExactlyOnce = value; } |
| | | 43 | | } |
| | | 44 | | |
| | | 45 | | [DefaultValue(TransportDefaults.MaxReceivedMessageSize)] |
| | | 46 | | public long MaxReceivedMessageSize |
| | | 47 | | { |
| | 0 | 48 | | get { return _transport.MaxReceivedMessageSize; } |
| | 0 | 49 | | set { _transport.MaxReceivedMessageSize = value; } |
| | | 50 | | } |
| | | 51 | | |
| | | 52 | | |
| | | 53 | | [DefaultValue(MsmqDefaults.ReceiveContextEnabled)] |
| | | 54 | | public bool ReceiveContextEnabled |
| | | 55 | | { |
| | 0 | 56 | | get { return _transport.ReceiveContextEnabled; } |
| | 0 | 57 | | set { _transport.ReceiveContextEnabled = value; } |
| | | 58 | | } |
| | | 59 | | |
| | | 60 | | // todo: need to be enabled when we add System.Transactions support |
| | | 61 | | //[DefaultValue(MsmqDefaults.ReceiveErrorHandling)] |
| | | 62 | | //public ReceiveErrorHandling ReceiveErrorHandling |
| | | 63 | | //{ |
| | | 64 | | // get { return transport.ReceiveErrorHandling; } |
| | | 65 | | // set { transport.ReceiveErrorHandling = value; } |
| | | 66 | | //} |
| | | 67 | | |
| | 0 | 68 | | public override string Scheme { get { return _transport.Scheme; } } |
| | | 69 | | } |
| | | 70 | | } |