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
- ListItemCollection.cs
- LogStore.cs
- EventLogEntry.cs
- UdpUtility.cs
- MonthCalendar.cs
- TextServicesCompartmentContext.cs
- SecurityIdentifierConverter.cs
- OTFRasterizer.cs
- WorkflowMarkupElementEventArgs.cs
- FileRegion.cs
- MatrixTransform3D.cs
- InitializerFacet.cs
- RootCodeDomSerializer.cs
- TypefaceMap.cs
- ManualWorkflowSchedulerService.cs
- DocumentOrderQuery.cs
- Path.cs
- RawKeyboardInputReport.cs
- Brush.cs
- MethodAccessException.cs
- RelationshipType.cs
- QueryOptionExpression.cs
- SqlParameterizer.cs
- RijndaelManaged.cs
- X509ImageLogo.cs
- AssemblyBuilder.cs
- Stylus.cs
- ClientScriptItemCollection.cs
- HtmlInputReset.cs
- HWStack.cs
- FtpCachePolicyElement.cs
- BCryptSafeHandles.cs
- BasicExpandProvider.cs
- ValidationSummary.cs
- StrongNameUtility.cs
- OutKeywords.cs
- PagePropertiesChangingEventArgs.cs
- DataGridViewRowsRemovedEventArgs.cs
- HostingEnvironmentWrapper.cs
- SqlParameterizer.cs
- ValueTable.cs
- RequestNavigateEventArgs.cs
- InvalidOperationException.cs
- CatalogUtil.cs
- DependencyObjectType.cs
- NullRuntimeConfig.cs
- HtmlTableRowCollection.cs
- CompilerError.cs
- DesignTimeTemplateParser.cs
- Membership.cs
- DbMetaDataCollectionNames.cs
- SubtreeProcessor.cs
- QuerySettings.cs
- FontSource.cs
- InputLanguageEventArgs.cs
- WizardForm.cs
- DbException.cs
- LocalizableAttribute.cs
- ServiceContractListItem.cs
- WebServiceHandlerFactory.cs
- URLMembershipCondition.cs
- DataGridViewUtilities.cs
- RadioButtonPopupAdapter.cs
- ProtocolsConfigurationEntry.cs
- ObjectDataSourceEventArgs.cs
- NetStream.cs
- ObjectDataSourceMethodEventArgs.cs
- Pen.cs
- XmlParserContext.cs
- EnumUnknown.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- WebPartManagerInternals.cs
- BindingMAnagerBase.cs
- DetailsViewRow.cs
- ProvidersHelper.cs
- DateTimeStorage.cs
- EditorAttribute.cs
- IdentifierCollection.cs
- Win32Native.cs
- KeyboardNavigation.cs
- OverlappedAsyncResult.cs
- XmlCompatibilityReader.cs
- DesignerProperties.cs
- SpeechUI.cs
- BitmapDownload.cs
- DataRowView.cs
- EmissiveMaterial.cs
- HttpResponseHeader.cs
- RowSpanVector.cs
- RuleSettings.cs
- ExpressionBuilder.cs
- ImportContext.cs
- EDesignUtil.cs
- XamlBrushSerializer.cs
- _NativeSSPI.cs
- HatchBrush.cs
- StateManager.cs
- TraceInternal.cs
- mda.cs
- BufferModeSettings.cs