Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.WorkflowServices / System / ServiceModel / QueueNameHelper.cs / 1305376 / QueueNameHelper.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel { using System.Collections.Generic; using System.Workflow.Runtime; using System.ServiceModel.Channels; using System.Reflection; using System.Text; using System.Xml; using System.ServiceModel.Dispatcher; using System.Workflow.Activities; static class QueueNameHelper { public static string Create(Type contractType, string operationName) { return Create(contractType.AssemblyQualifiedName, operationName); } public static string Create(string typeName, string operationName) { return typeName + "|" + operationName; } public static string Create(string partialQueueName, IDictionarycontextProperties) { if (partialQueueName == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("partialQueueName"); } if (contextProperties == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("contextProperties"); } string conversationId = null; //Chosen explicit look up against generic looping of Context Headers //to mitigate security threat bug PS#3470. if (contextProperties.TryGetValue(WellKnownContextProperties.ConversationId, out conversationId)) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.Append(partialQueueName); stringBuilder.Append("|"); stringBuilder.Append(WellKnownContextProperties.ConversationId + ":" + conversationId); return stringBuilder.ToString(); } return partialQueueName; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BindingList.cs
- WebServiceEnumData.cs
- Atom10FormatterFactory.cs
- HMACSHA1.cs
- DelegateSerializationHolder.cs
- BaseCAMarshaler.cs
- MessageQueuePermission.cs
- ProtectedUri.cs
- Fx.cs
- ProxyOperationRuntime.cs
- messageonlyhwndwrapper.cs
- PositiveTimeSpanValidator.cs
- XmlDataProvider.cs
- HwndAppCommandInputProvider.cs
- TextBoxRenderer.cs
- CategoryEditor.cs
- BackoffTimeoutHelper.cs
- PrimitiveCodeDomSerializer.cs
- ObjectSpanRewriter.cs
- StructuralCache.cs
- FontUnit.cs
- RbTree.cs
- WebControl.cs
- DataPagerField.cs
- RangeValidator.cs
- XmlReaderSettings.cs
- MsmqOutputMessage.cs
- Crc32.cs
- CompositeFontInfo.cs
- UnsafeNativeMethods.cs
- QuadraticBezierSegment.cs
- TemplateXamlParser.cs
- DataGridLinkButton.cs
- XmlSerializerNamespaces.cs
- Attributes.cs
- TraceUtility.cs
- Repeater.cs
- WindowsNonControl.cs
- DictionarySectionHandler.cs
- ProcessMonitor.cs
- NetPeerTcpBindingCollectionElement.cs
- BindingWorker.cs
- TimeStampChecker.cs
- ByteStreamGeometryContext.cs
- Point4DConverter.cs
- IndentTextWriter.cs
- ItemList.cs
- SQLSingleStorage.cs
- FormatConvertedBitmap.cs
- CharConverter.cs
- ControlOperationBehavior.cs
- Content.cs
- IsolatedStorageFileStream.cs
- UnsafeNativeMethodsMilCoreApi.cs
- MinimizableAttributeTypeConverter.cs
- WebReferencesBuildProvider.cs
- DeploymentSectionCache.cs
- Lease.cs
- PropertyEmitterBase.cs
- EdmConstants.cs
- DbException.cs
- DeadCharTextComposition.cs
- ServicePrincipalNameElement.cs
- CompilerScopeManager.cs
- URIFormatException.cs
- log.cs
- StreamReader.cs
- ReceiveContent.cs
- Root.cs
- PolicyManager.cs
- updateconfighost.cs
- GeometryModel3D.cs
- ProcessHostServerConfig.cs
- DataRecordInfo.cs
- LZCodec.cs
- DecimalConstantAttribute.cs
- PrePrepareMethodAttribute.cs
- _UncName.cs
- StdRegProviderWrapper.cs
- TextElement.cs
- DoubleConverter.cs
- XPathNodeIterator.cs
- Resources.Designer.cs
- StackOverflowException.cs
- PointAnimationUsingKeyFrames.cs
- HeaderLabel.cs
- EmptyEnumerable.cs
- sqlser.cs
- ZipIOLocalFileBlock.cs
- LeftCellWrapper.cs
- ZipIOLocalFileHeader.cs
- Aes.cs
- SymbolEqualComparer.cs
- HtmlMeta.cs
- LocalTransaction.cs
- TextViewBase.cs
- RightsManagementInformation.cs
- TokenFactoryBase.cs
- PtsCache.cs
- BitmapImage.cs