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
- ToolStripRenderEventArgs.cs
- FontStretch.cs
- DataGridViewCellStateChangedEventArgs.cs
- ScrollableControl.cs
- ProtectedProviderSettings.cs
- ServiceDocumentFormatter.cs
- AbstractExpressions.cs
- BamlResourceDeserializer.cs
- PkcsMisc.cs
- SimpleTextLine.cs
- WebPartVerb.cs
- SimpleWorkerRequest.cs
- PassportPrincipal.cs
- ConfigurationFileMap.cs
- XmlWrappingReader.cs
- figurelength.cs
- DefaultPrintController.cs
- SafeViewOfFileHandle.cs
- FilterElement.cs
- RectangleGeometry.cs
- XmlSchemaAll.cs
- RegisteredExpandoAttribute.cs
- InheritanceService.cs
- SamlAction.cs
- EdmItemCollection.cs
- OracleSqlParser.cs
- CngUIPolicy.cs
- IApplicationTrustManager.cs
- StreamUpgradeProvider.cs
- SessionEndedEventArgs.cs
- TemplateColumn.cs
- Invariant.cs
- Splitter.cs
- StringKeyFrameCollection.cs
- DbSourceParameterCollection.cs
- LinkedResourceCollection.cs
- validationstate.cs
- ViewLoader.cs
- ExpressionVisitorHelpers.cs
- MemberRestriction.cs
- ControlAdapter.cs
- WebServiceHost.cs
- PeerReferralPolicy.cs
- ExpressionCopier.cs
- mansign.cs
- ReliableRequestSessionChannel.cs
- InfoCardKeyedHashAlgorithm.cs
- PassportAuthentication.cs
- RSAPKCS1SignatureDeformatter.cs
- BitmapData.cs
- TreeNodeStyleCollection.cs
- FrameAutomationPeer.cs
- ActiveXSite.cs
- ExtensionQuery.cs
- SyndicationDeserializer.cs
- ProtocolsConfigurationEntry.cs
- CurrencyWrapper.cs
- MonthChangedEventArgs.cs
- ExpandCollapseProviderWrapper.cs
- FlowDocumentPage.cs
- DeferredSelectedIndexReference.cs
- ConfigurationStrings.cs
- ContentElement.cs
- BamlBinaryReader.cs
- SafeNativeMethods.cs
- KnownTypes.cs
- AtlasWeb.Designer.cs
- CultureTable.cs
- EncodingTable.cs
- HwndStylusInputProvider.cs
- PersonalizationEntry.cs
- webproxy.cs
- ReadonlyMessageFilter.cs
- PackagePart.cs
- AttachedAnnotation.cs
- Itemizer.cs
- AlphabeticalEnumConverter.cs
- PolyBezierSegment.cs
- Cursor.cs
- TypeContext.cs
- ContentControl.cs
- InputReportEventArgs.cs
- ApplicationSettingsBase.cs
- ColorMatrix.cs
- LoginViewDesigner.cs
- EventListener.cs
- FixedSOMPage.cs
- CompositeDataBoundControl.cs
- PackWebRequest.cs
- _SecureChannel.cs
- ColorContext.cs
- DesignerCalendarAdapter.cs
- XmlReflectionMember.cs
- HttpPostedFileBase.cs
- BitmapEffect.cs
- RoutedEventConverter.cs
- GenericTypeParameterConverter.cs
- DrawingContextWalker.cs
- ListViewGroupConverter.cs
- Accessible.cs