Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / ServiceElement.cs / 1 / ServiceElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.ServiceModel.Description; using System.Collections.Generic; using System.Globalization; using System.Security; public sealed partial class ServiceElement : ConfigurationElement, IConfigurationContextProviderInternal { ////// Critical - stores information used in a security decision /// [SecurityCritical] EvaluationContextHelper contextHelper; public ServiceElement() : base() {} public ServiceElement(string serviceName) : this() { this.Name = serviceName; } [ConfigurationProperty(ConfigurationStrings.BehaviorConfiguration, DefaultValue = "")] [StringValidator(MinLength = 0)] public string BehaviorConfiguration { get {return (string) base[ConfigurationStrings.BehaviorConfiguration]; } set { if (String.IsNullOrEmpty(value)) { value = String.Empty; } base[ConfigurationStrings.BehaviorConfiguration] = value; } } [ConfigurationProperty(ConfigurationStrings.DefaultCollectionName, Options = ConfigurationPropertyOptions.IsDefaultCollection)] public ServiceEndpointElementCollection Endpoints { get {return (ServiceEndpointElementCollection) base[ConfigurationStrings.DefaultCollectionName]; } } [ConfigurationProperty(ConfigurationStrings.Host, Options = ConfigurationPropertyOptions.None)] public HostElement Host { get { return (HostElement)base[ConfigurationStrings.Host]; } } [ConfigurationProperty(ConfigurationStrings.Name, Options = ConfigurationPropertyOptions.IsKey | ConfigurationPropertyOptions.IsRequired)] [StringValidator(MinLength = 1)] public string Name { get {return (string) base[ConfigurationStrings.Name]; } set { if (String.IsNullOrEmpty(value)) { value = String.Empty; } base[ConfigurationStrings.Name] = value; } } ////// Critical - accesses critical field contextHelper /// [SecurityCritical] protected override void Reset(ConfigurationElement parentElement) { this.contextHelper.OnReset(parentElement); base.Reset(parentElement); } ContextInformation IConfigurationContextProviderInternal.GetEvaluationContext() { return this.EvaluationContext; } ////// Critical -- accesses critical field contextHelper /// RequiresReview -- the return value will be used for a security decision -- see comment in interface definition /// [SecurityCritical] ContextInformation IConfigurationContextProviderInternal.GetOriginalEvaluationContext() { return this.contextHelper.GetOriginalContext(this); } } } // 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
- DataServiceContext.cs
- ChannelDispatcherCollection.cs
- LogAppendAsyncResult.cs
- WaitForChangedResult.cs
- ping.cs
- CreateUserWizardStep.cs
- StringDictionaryWithComparer.cs
- RadialGradientBrush.cs
- IisTraceListener.cs
- MessagingDescriptionAttribute.cs
- DataGridColumnEventArgs.cs
- MaskedTextProvider.cs
- CodeNamespaceCollection.cs
- DocumentOrderComparer.cs
- Control.cs
- GeometryConverter.cs
- baseshape.cs
- MultipleViewPattern.cs
- CounterCreationData.cs
- Stack.cs
- ConfigXmlComment.cs
- PenLineJoinValidation.cs
- IfJoinedCondition.cs
- Semaphore.cs
- CategoryNameCollection.cs
- PropertyAccessVisitor.cs
- GridViewRow.cs
- PluggableProtocol.cs
- EdmComplexTypeAttribute.cs
- WebPartEventArgs.cs
- TraceHandler.cs
- XmlSerializerOperationGenerator.cs
- AnnotationService.cs
- HttpResponseHeader.cs
- MimePart.cs
- ConfigurationConverterBase.cs
- AdRotatorDesigner.cs
- DataGridViewTextBoxCell.cs
- ProcessStartInfo.cs
- QueryableDataSourceEditData.cs
- JoinTreeSlot.cs
- HttpRuntimeSection.cs
- TrustManagerMoreInformation.cs
- BindingGroup.cs
- ETagAttribute.cs
- TagPrefixAttribute.cs
- __Filters.cs
- QueryStringParameter.cs
- Rotation3D.cs
- _NegoState.cs
- __Filters.cs
- GetPolicyDetailsRequest.cs
- ProxyManager.cs
- NamespaceCollection.cs
- PkcsUtils.cs
- PenThread.cs
- BaseTemplateBuildProvider.cs
- ReceiveContent.cs
- BitmapEncoder.cs
- panel.cs
- WebPartMinimizeVerb.cs
- InstanceLockedException.cs
- HideDisabledControlAdapter.cs
- InternalTypeHelper.cs
- ImpersonationContext.cs
- NetStream.cs
- SQLInt16.cs
- CodeDirectionExpression.cs
- WindowsTokenRoleProvider.cs
- SrgsDocument.cs
- MiniModule.cs
- PrimitiveList.cs
- ProcessModelSection.cs
- NumericUpDownAcceleration.cs
- ArrayExtension.cs
- XmlSchemaAll.cs
- MarginsConverter.cs
- FragmentQuery.cs
- HttpProcessUtility.cs
- SqlDataSourceCache.cs
- basevalidator.cs
- Thread.cs
- DataGridCellClipboardEventArgs.cs
- StackOverflowException.cs
- ConstantProjectedSlot.cs
- DataPagerFieldCommandEventArgs.cs
- loginstatus.cs
- Pair.cs
- WrapperEqualityComparer.cs
- RestHandler.cs
- Queue.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- MembershipSection.cs
- DynamicActionMessageFilter.cs
- CalendarDay.cs
- WebPartConnectionsCloseVerb.cs
- HtmlInputHidden.cs
- WriteableBitmap.cs
- LogLogRecordEnumerator.cs
- SerializationHelper.cs