Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / MessagePartProtectionMode.cs / 1 / MessagePartProtectionMode.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Security { enum MessagePartProtectionMode { None, Sign, Encrypt, SignThenEncrypt, EncryptThenSign, } static class MessagePartProtectionModeHelper { public static MessagePartProtectionMode GetProtectionMode(bool sign, bool encrypt, bool signThenEncrypt) { if (sign) { if (encrypt) { if (signThenEncrypt) { return MessagePartProtectionMode.SignThenEncrypt; } else { return MessagePartProtectionMode.EncryptThenSign; } } else { return MessagePartProtectionMode.Sign; } } else if (encrypt) { return MessagePartProtectionMode.Encrypt; } else { return MessagePartProtectionMode.None; } } } } // 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
- ButtonStandardAdapter.cs
- ReliableChannelListener.cs
- NativeWindow.cs
- SectionXmlInfo.cs
- MDIControlStrip.cs
- TextSelection.cs
- DiscardableAttribute.cs
- DelimitedListTraceListener.cs
- FlagsAttribute.cs
- TextRangeBase.cs
- NamedPipeProcessProtocolHandler.cs
- ConstructorExpr.cs
- RTLAwareMessageBox.cs
- Command.cs
- DataGridViewTextBoxEditingControl.cs
- NavigationWindowAutomationPeer.cs
- InternalEnumValidator.cs
- RoleGroup.cs
- ProxyWebPart.cs
- CellParagraph.cs
- DataReaderContainer.cs
- DefaultPropertiesToSend.cs
- PropertyChangedEventManager.cs
- DetailsViewCommandEventArgs.cs
- DataServiceQueryContinuation.cs
- ApplyHostConfigurationBehavior.cs
- XmlQuerySequence.cs
- ImageListUtils.cs
- SecurityResources.cs
- ButtonPopupAdapter.cs
- DoubleCollectionValueSerializer.cs
- UniformGrid.cs
- ParserContext.cs
- GeometryModel3D.cs
- ArithmeticException.cs
- AuthStoreRoleProvider.cs
- MetadataAssemblyHelper.cs
- WebSysDescriptionAttribute.cs
- complextypematerializer.cs
- GrammarBuilderDictation.cs
- ClientUtils.cs
- PointCollection.cs
- FontUnitConverter.cs
- XPathParser.cs
- QilLoop.cs
- IApplicationTrustManager.cs
- StrongNameUtility.cs
- FixedFlowMap.cs
- WebServiceFaultDesigner.cs
- Authorization.cs
- XmlBinaryWriterSession.cs
- CurrentChangedEventManager.cs
- UseAttributeSetsAction.cs
- ColumnWidthChangingEvent.cs
- EventItfInfo.cs
- bindurihelper.cs
- HierarchicalDataTemplate.cs
- FileNotFoundException.cs
- WeakReference.cs
- QueryTaskGroupState.cs
- Parsers.cs
- DebugInfoExpression.cs
- RuntimeResourceSet.cs
- CqlBlock.cs
- RawStylusInputReport.cs
- ItemCheckedEvent.cs
- SortQuery.cs
- KeyValueSerializer.cs
- DesignerTransactionCloseEvent.cs
- PropertiesTab.cs
- EntityKey.cs
- DisplayNameAttribute.cs
- XmlDomTextWriter.cs
- SqlClientPermission.cs
- StylusShape.cs
- TransformConverter.cs
- PhysicalOps.cs
- NGCPageContentCollectionSerializerAsync.cs
- TimelineCollection.cs
- GridViewEditEventArgs.cs
- ComponentSerializationService.cs
- SecurityManager.cs
- TextLineBreak.cs
- Validator.cs
- CustomDictionarySources.cs
- WebAdminConfigurationHelper.cs
- ToolStripRenderEventArgs.cs
- EventWaitHandle.cs
- WebBrowserEvent.cs
- RectangleConverter.cs
- RegisteredDisposeScript.cs
- StringAttributeCollection.cs
- ListenerElementsCollection.cs
- ThreadPool.cs
- FileSecurity.cs
- ScopedMessagePartSpecification.cs
- HotSpotCollectionEditor.cs
- HtmlInputControl.cs
- ControlBindingsCollection.cs
- SchemaImporterExtensionElement.cs