Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / OperationContractAttribute.cs / 1 / OperationContractAttribute.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel { using System.Security.Principal; using System.Reflection; using System.Transactions; using System.ServiceModel.Security; using System.Net.Security; [AttributeUsage(ServiceModelAttributeTargets.OperationContract)] public sealed class OperationContractAttribute : Attribute { string name = null; string action = null; string replyAction = null; bool asyncPattern = false; bool isInitiating = true; bool isTerminating = false; bool isOneWay = false; ProtectionLevel protectionLevel = ProtectionLevel.None; bool hasProtectionLevel = false; public string Name { get { return this.name; } set { if (value == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); } if (value == "") { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SR.GetString(SR.SFxNameCannotBeEmpty))); } this.name = value; } } internal const string ActionPropertyName = "Action"; public string Action { get { return this.action; } set { if (value == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); } this.action = value; } } internal const string ProtectionLevelPropertyName = "ProtectionLevel"; public ProtectionLevel ProtectionLevel { get { return this.protectionLevel; } set { if (!ProtectionLevelHelper.IsDefined(value)) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value")); this.protectionLevel = value; this.hasProtectionLevel = true; } } public bool HasProtectionLevel { get { return this.hasProtectionLevel; } } internal const string ReplyActionPropertyName = "ReplyAction"; public string ReplyAction { get { return this.replyAction; } set { if (value == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); } this.replyAction = value; } } public bool AsyncPattern { get { return this.asyncPattern; } set { this.asyncPattern = value; } } public bool IsOneWay { get { return this.isOneWay; } set { this.isOneWay = value; } } public bool IsInitiating { get { return this.isInitiating; } set { this.isInitiating = value; } } public bool IsTerminating { get { return this.isTerminating; } set { this.isTerminating = value; } } } } // 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
- ClientConfigPaths.cs
- Point.cs
- HttpProfileGroupBase.cs
- ListViewItemSelectionChangedEvent.cs
- AsyncStreamReader.cs
- SimpleWorkerRequest.cs
- TextEditor.cs
- ViewManager.cs
- ActivityMarkupSerializationProvider.cs
- AuthorizationRule.cs
- DispatcherExceptionFilterEventArgs.cs
- CodeGen.cs
- DropShadowEffect.cs
- PageParserFilter.cs
- SiteMapProvider.cs
- WebPartTransformerAttribute.cs
- AnimationLayer.cs
- SelectionHighlightInfo.cs
- FixedPage.cs
- SqlMethodCallConverter.cs
- UrlMappingsModule.cs
- AutomationIdentifierGuids.cs
- AtomServiceDocumentSerializer.cs
- _TimerThread.cs
- SQLMoneyStorage.cs
- FileRegion.cs
- DataGridViewRow.cs
- PassportIdentity.cs
- TextEmbeddedObject.cs
- BlurBitmapEffect.cs
- DataConnectionHelper.cs
- DoubleAnimation.cs
- EventHandlerService.cs
- ContextMenu.cs
- DomNameTable.cs
- X509ChainPolicy.cs
- WeakHashtable.cs
- CodeNamespace.cs
- XmlValidatingReader.cs
- MenuItemStyleCollection.cs
- templategroup.cs
- AmbientProperties.cs
- CircleHotSpot.cs
- CheckBoxStandardAdapter.cs
- WorkflowTransactionService.cs
- LassoHelper.cs
- FontEditor.cs
- CircleHotSpot.cs
- WebServiceReceive.cs
- ConnectionPoint.cs
- TypeBuilderInstantiation.cs
- ContentOnlyMessage.cs
- AutomationIdentifierGuids.cs
- HierarchicalDataSourceConverter.cs
- UpdatableGenericsFeature.cs
- ProfilePropertyNameValidator.cs
- PingReply.cs
- HtmlTextArea.cs
- DataObjectEventArgs.cs
- TemplateBindingExpression.cs
- StreamUpgradeInitiator.cs
- MdiWindowListStrip.cs
- AnnotationHelper.cs
- PrintingPermission.cs
- ClickablePoint.cs
- AssemblyHash.cs
- EqualityArray.cs
- WorkflowRuntimeServiceElement.cs
- ExpressionDumper.cs
- SafeEventLogReadHandle.cs
- ClientScriptManager.cs
- ThreadExceptionEvent.cs
- DesignBinding.cs
- SettingsContext.cs
- Validator.cs
- DefaultSettingsSection.cs
- BufferModeSettings.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- RNGCryptoServiceProvider.cs
- HotSpotCollectionEditor.cs
- ResourceProviderFactory.cs
- AnonymousIdentificationSection.cs
- WebResourceUtil.cs
- SystemTcpStatistics.cs
- HttpRuntimeSection.cs
- Padding.cs
- PropertyGrid.cs
- EntityDesignerUtils.cs
- ColorContextHelper.cs
- TimeSpanStorage.cs
- DictionaryManager.cs
- SizeLimitedCache.cs
- ExecutorLocksHeldException.cs
- ObjectResult.cs
- AbsoluteQuery.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- TextEffect.cs
- ThreadAbortException.cs
- FormViewActionList.cs
- SoapHeader.cs