| | | 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.Net.Security; |
| | | 6 | | using CoreWCF.Security; |
| | | 7 | | |
| | | 8 | | namespace CoreWCF.Channels |
| | | 9 | | { |
| | | 10 | | internal static class MsmqDefaults |
| | | 11 | | { |
| | | 12 | | internal const MessageCredentialType DefaultClientCredentialType = MessageCredentialType.Windows; |
| | | 13 | | internal const Uri CustomDeadLetterQueue = null; |
| | | 14 | | internal const DeadLetterQueue DeadLetterQueue = CoreWCF.Channels.DeadLetterQueue.System; |
| | | 15 | | internal const bool Durable = true; |
| | | 16 | | internal const bool ExactlyOnce = true; |
| | | 17 | | internal const bool ReceiveContextEnabled = true; |
| | | 18 | | internal const int MaxRetryCycles = 2; |
| | | 19 | | internal const int MaxPoolSize = 8; |
| | | 20 | | internal const MsmqAuthenticationMode MsmqAuthenticationMode1 = MsmqAuthenticationMode.WindowsDomain; |
| | | 21 | | internal const MsmqEncryptionAlgorithm MsmqEncryptionAlgorithm1 = MsmqEncryptionAlgorithm.RC4Stream; |
| | | 22 | | internal const MsmqSecureHashAlgorithm DefaultMsmqSecureHashAlgorithm = MsmqSecureHashAlgorithm.Sha256; |
| | 0 | 23 | | internal static MsmqSecureHashAlgorithm MsmqSecureHashAlgorithm = MsmqSecureHashAlgorithm.Sha1; |
| | | 24 | | internal const ProtectionLevel MsmqProtectionLevel = ProtectionLevel.Sign; |
| | | 25 | | // internal const ReceiveErrorHandling ReceiveErrorHandling = System.ServiceModel.ReceiveErrorHandling.Fault; |
| | | 26 | | internal const int ReceiveRetryCount = 5; |
| | | 27 | | // internal const QueueTransferProtocol QueueTransferProtocol = System.ServiceModel.QueueTransferProtocol.Native |
| | 0 | 28 | | internal static TimeSpan RetryCycleDelay { get { return TimeSpan.FromMinutes(30); } } |
| | | 29 | | internal const string RetryCycleDelayString = "00:30:00"; |
| | 0 | 30 | | internal static TimeSpan TimeToLive { get { return TimeSpan.FromDays(1); } } |
| | | 31 | | internal const string TimeToLiveString = "1.00:00:00"; |
| | | 32 | | internal const bool UseActiveDirectory = false; |
| | | 33 | | internal const bool UseSourceJournal = false; |
| | | 34 | | internal const bool UseMsmqTracing = false; |
| | 0 | 35 | | internal static TimeSpan ValidityDuration { get { return TimeSpan.FromMinutes(5); } } |
| | | 36 | | internal const string ValidityDurationString = "00:05:00"; |
| | | 37 | | internal static SecurityAlgorithmSuite MessageSecurityAlgorithmSuite |
| | | 38 | | { |
| | 0 | 39 | | get { return SecurityAlgorithmSuite.Default; } |
| | | 40 | | } |
| | | 41 | | } |
| | | 42 | | } |