Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / TransactionBridge / Microsoft / Transactions / Bridge / Configuration / TransactionBridgeSection.cs / 1 / TransactionBridgeSection.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace Microsoft.Transactions.Bridge.Configuration { using System; using System.Configuration; using System.Globalization; internal sealed partial class TransactionBridgeSection : ConfigurationSection { public TransactionBridgeSection() : this(false) { } internal TransactionBridgeSection(bool setDefaults) : base() { if (setDefaults) { this.Protocols.SetDefaults(); } } [ConfigurationProperty(ConfigurationStrings.Protocols, DefaultValue = null, Options = ConfigurationPropertyOptions.None)] public ProtocolElementCollection Protocols { get { return (ProtocolElementCollection)base[ConfigurationStrings.Protocols]; } } [ConfigurationProperty(ConfigurationStrings.TransactionManagerType, DefaultValue = TransactionBridgeSection.dtcGatewayType, Options = ConfigurationPropertyOptions.None)] [StringValidator(MinLength = 0)] public string TransactionManagerType { get { return (string)base[ConfigurationStrings.TransactionManagerType]; } set { if (String.IsNullOrEmpty(value)) { value = String.Empty; } base[ConfigurationStrings.TransactionManagerType] = value; } } protected override void Reset(ConfigurationElement parentElement) { if (parentElement == null) { parentElement = new TransactionBridgeSection(true); } base.Reset(parentElement); } static internal TransactionBridgeSection GetSection() { TransactionBridgeSection retval = ConfigurationStrings.GetSection(ConfigurationStrings.GetSectionPath(ConfigurationStrings.TransactionBridgeSectionName)) as TransactionBridgeSection; if (retval == null) { retval = new TransactionBridgeSection(true); } return retval; } const string dtcGatewayType = ("Microsoft.Transactions.Bridge.Dtc.GatewayTransactionManager, " + "Microsoft.Transactions.Bridge.Dtc, " + "Version=" + ThisAssembly.Version + ", " + "Culture=neutral, " + "PublicKeyToken=" + AssemblyRef.MicrosoftPublicKey); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlNavigatorFilter.cs
- SemaphoreSecurity.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- AcceleratedTokenProvider.cs
- StylusEventArgs.cs
- SQLByte.cs
- ObjectItemAssemblyLoader.cs
- SkewTransform.cs
- CertificateManager.cs
- BinaryMethodMessage.cs
- SigningCredentials.cs
- StateChangeEvent.cs
- CacheSection.cs
- Simplifier.cs
- SqlBulkCopyColumnMapping.cs
- DataControlFieldHeaderCell.cs
- Qualifier.cs
- HtmlTextArea.cs
- ExpressionVisitor.cs
- KeyboardNavigation.cs
- Propagator.JoinPropagator.cs
- ScriptDescriptor.cs
- FileInfo.cs
- InkCanvasSelection.cs
- TextElementAutomationPeer.cs
- ViewSimplifier.cs
- ToolStripContainer.cs
- AspCompat.cs
- InplaceBitmapMetadataWriter.cs
- RTLAwareMessageBox.cs
- XmlDataImplementation.cs
- StreamReader.cs
- SingleResultAttribute.cs
- BaseConfigurationRecord.cs
- CanExecuteRoutedEventArgs.cs
- FrameworkElement.cs
- dataprotectionpermission.cs
- HttpHandler.cs
- DataGridViewUtilities.cs
- StrongTypingException.cs
- CodeTryCatchFinallyStatement.cs
- SecurityDescriptor.cs
- HandlerBase.cs
- SvcMapFile.cs
- TrackingStringDictionary.cs
- SecurityTokenRequirement.cs
- ToolStripControlHost.cs
- DesignerLoader.cs
- TrustLevelCollection.cs
- DynamicPropertyHolder.cs
- COM2FontConverter.cs
- HttpResponseInternalWrapper.cs
- CompressedStack.cs
- XsdDuration.cs
- DataBoundControlDesigner.cs
- KnowledgeBase.cs
- smtpconnection.cs
- MimeTypeAttribute.cs
- RoutedEvent.cs
- AsymmetricSecurityProtocolFactory.cs
- DependencyObjectCodeDomSerializer.cs
- ToolStripSplitStackLayout.cs
- DocumentReference.cs
- Vector3DAnimationUsingKeyFrames.cs
- AnnotationComponentManager.cs
- BamlLocalizationDictionary.cs
- RemoteWebConfigurationHostServer.cs
- TableAutomationPeer.cs
- XPathNode.cs
- PeerContact.cs
- DataControlImageButton.cs
- OdbcConnection.cs
- AdapterSwitches.cs
- MouseGestureConverter.cs
- NameTable.cs
- KeyedHashAlgorithm.cs
- BaseValidatorDesigner.cs
- EmptyControlCollection.cs
- DispatcherObject.cs
- BasicViewGenerator.cs
- DBPropSet.cs
- StringAnimationUsingKeyFrames.cs
- ParameterReplacerVisitor.cs
- MimeFormReflector.cs
- DecryptRequest.cs
- SelectingProviderEventArgs.cs
- EventLogSession.cs
- GroupLabel.cs
- ConnectionManagementSection.cs
- InternalCache.cs
- ActivityCodeDomReferenceService.cs
- ApplyTemplatesAction.cs
- __Filters.cs
- EncryptedType.cs
- QuadraticEase.cs
- DataColumnMappingCollection.cs
- XmlReturnReader.cs
- OdbcConnectionStringbuilder.cs
- ConstrainedGroup.cs
- DPCustomTypeDescriptor.cs