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
- DefaultProxySection.cs
- SqlBulkCopyColumnMappingCollection.cs
- DataSourceXmlElementAttribute.cs
- XmlSchemaAttributeGroup.cs
- CleanUpVirtualizedItemEventArgs.cs
- MenuStrip.cs
- OdbcConnectionOpen.cs
- CookieHandler.cs
- StatusStrip.cs
- HttpContextBase.cs
- IListConverters.cs
- SplineKeyFrames.cs
- GregorianCalendarHelper.cs
- RtfToXamlLexer.cs
- PolygonHotSpot.cs
- MessageQueueException.cs
- LoadRetryAsyncResult.cs
- EntityException.cs
- ClientRoleProvider.cs
- Knowncolors.cs
- BitmapEffectDrawingContextWalker.cs
- OdbcDataReader.cs
- QuaternionValueSerializer.cs
- WebPartRestoreVerb.cs
- WrapPanel.cs
- DataTransferEventArgs.cs
- ScriptManagerProxy.cs
- OptionalColumn.cs
- UidManager.cs
- ZoneButton.cs
- ResourceDictionary.cs
- UxThemeWrapper.cs
- StreamBodyWriter.cs
- StylusPointPropertyId.cs
- ListCardsInFileRequest.cs
- Control.cs
- DrawItemEvent.cs
- StrongNameUtility.cs
- HtmlInputFile.cs
- EntitySqlQueryCacheEntry.cs
- XmlWellformedWriter.cs
- IntellisenseTextBox.designer.cs
- BasicExpandProvider.cs
- TraceHelpers.cs
- Visual3D.cs
- TreeViewImageKeyConverter.cs
- SafeProcessHandle.cs
- SqlLiftIndependentRowExpressions.cs
- ExpressionsCollectionEditor.cs
- _ConnectionGroup.cs
- SettingsProviderCollection.cs
- SettingsProviderCollection.cs
- MultiByteCodec.cs
- BulletedListEventArgs.cs
- DataSourceGeneratorException.cs
- PageHandlerFactory.cs
- ParameterInfo.cs
- GradientStop.cs
- TaiwanCalendar.cs
- WebPartCancelEventArgs.cs
- Statements.cs
- KeyGesture.cs
- ConfigXmlCDataSection.cs
- InvalidDataException.cs
- ScrollEvent.cs
- PersonalizationEntry.cs
- VerticalAlignConverter.cs
- ProviderCommandInfoUtils.cs
- UIElementParaClient.cs
- XmlSignatureProperties.cs
- RouteValueExpressionBuilder.cs
- Encoder.cs
- EncodingStreamWrapper.cs
- LostFocusEventManager.cs
- ReadOnlyCollectionBase.cs
- X500Name.cs
- codemethodreferenceexpression.cs
- objectresult_tresulttype.cs
- PageAsyncTask.cs
- InvalidPrinterException.cs
- SamlSubject.cs
- HtmlMeta.cs
- XmlSerializerNamespaces.cs
- input.cs
- DesignParameter.cs
- CompiledIdentityConstraint.cs
- SslStreamSecurityElement.cs
- AssociatedControlConverter.cs
- Aggregates.cs
- RectKeyFrameCollection.cs
- DBSqlParser.cs
- GACMembershipCondition.cs
- UnmanagedMemoryStream.cs
- DefaultPropertiesToSend.cs
- CollectionDataContract.cs
- MergePropertyDescriptor.cs
- TextDecorationUnitValidation.cs
- WebRequestModulesSection.cs
- DateTimeStorage.cs
- ClientSideQueueItem.cs