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
- SafeNativeMethods.cs
- IdleTimeoutMonitor.cs
- CaseExpr.cs
- UxThemeWrapper.cs
- _OverlappedAsyncResult.cs
- ComponentResourceManager.cs
- DataViewManagerListItemTypeDescriptor.cs
- ImageKeyConverter.cs
- CalendarDesigner.cs
- TextInfo.cs
- returneventsaver.cs
- UInt64Storage.cs
- HttpCacheParams.cs
- RoleService.cs
- PageParserFilter.cs
- initElementDictionary.cs
- DecoderNLS.cs
- WindowsFormsEditorServiceHelper.cs
- UnmanagedHandle.cs
- TemplateComponentConnector.cs
- OdbcErrorCollection.cs
- CacheHelper.cs
- XmlNullResolver.cs
- SerializationException.cs
- StateMachineWorkflowInstance.cs
- Script.cs
- HttpRequestTraceRecord.cs
- EmptyEnumerable.cs
- WebPartHeaderCloseVerb.cs
- ColorConvertedBitmap.cs
- StorageModelBuildProvider.cs
- ConfigurationManagerInternal.cs
- CompilerParameters.cs
- PointCollectionConverter.cs
- Util.cs
- ExcludePathInfo.cs
- ForeignConstraint.cs
- EntityRecordInfo.cs
- UIElement3DAutomationPeer.cs
- WebPartZoneBase.cs
- VScrollProperties.cs
- Package.cs
- ProxyGenerator.cs
- PKCS1MaskGenerationMethod.cs
- BackgroundWorker.cs
- AuthenticationModulesSection.cs
- XmlStringTable.cs
- DateTimeConstantAttribute.cs
- OleDbCommand.cs
- StringBlob.cs
- TableLayoutSettingsTypeConverter.cs
- ObjectDataSourceSelectingEventArgs.cs
- TextWriter.cs
- Rotation3D.cs
- HtmlMeta.cs
- BlockUIContainer.cs
- ExtendedPropertyDescriptor.cs
- FileDialog_Vista_Interop.cs
- QilTargetType.cs
- ComboBoxItem.cs
- RoutedEventArgs.cs
- CounterCreationDataCollection.cs
- SqlParameterCollection.cs
- CancelEventArgs.cs
- WebServicesInteroperability.cs
- PassportIdentity.cs
- FixedSOMFixedBlock.cs
- AppDomainFactory.cs
- AssertSection.cs
- ControlAdapter.cs
- DomainConstraint.cs
- PropertyFilterAttribute.cs
- ScriptMethodAttribute.cs
- WindowsListView.cs
- MimePart.cs
- _ShellExpression.cs
- XPathParser.cs
- SponsorHelper.cs
- XmlSchemaDocumentation.cs
- UnknownWrapper.cs
- Converter.cs
- PreloadedPackages.cs
- ResponseStream.cs
- TemplateContent.cs
- AtomicFile.cs
- ToolStripGrip.cs
- DataSourceXmlClassAttribute.cs
- CollectionView.cs
- DataTableReaderListener.cs
- UnicodeEncoding.cs
- FontStretch.cs
- DataGridViewColumnCollectionDialog.cs
- DataSvcMapFileSerializer.cs
- Point3DAnimationUsingKeyFrames.cs
- Facet.cs
- MsmqInputMessagePool.cs
- DurableOperationContext.cs
- DetailsViewRow.cs
- SqlRemoveConstantOrderBy.cs