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
- DataGridPagerStyle.cs
- TypeDescriptor.cs
- OlePropertyStructs.cs
- Document.cs
- CharUnicodeInfo.cs
- HotSpotCollection.cs
- SemanticAnalyzer.cs
- TimeBoundedCache.cs
- CollectionViewProxy.cs
- GroupByExpressionRewriter.cs
- QuaternionKeyFrameCollection.cs
- AssemblyCache.cs
- unitconverter.cs
- DoubleLink.cs
- MemoryPressure.cs
- X509SecurityTokenAuthenticator.cs
- ScrollEvent.cs
- Axis.cs
- DoubleCollectionConverter.cs
- InputReport.cs
- PointKeyFrameCollection.cs
- DelegatingTypeDescriptionProvider.cs
- Query.cs
- MessageAction.cs
- Converter.cs
- DataListItemEventArgs.cs
- CustomErrorsSectionWrapper.cs
- WebConfigurationHost.cs
- ObjectSecurityT.cs
- MultiBinding.cs
- VideoDrawing.cs
- thaishape.cs
- XhtmlConformanceSection.cs
- SqlCommandBuilder.cs
- ValueOfAction.cs
- base64Transforms.cs
- TrackingMemoryStream.cs
- FileAuthorizationModule.cs
- ExpressionEditorAttribute.cs
- RenderCapability.cs
- ExtensionSimplifierMarkupObject.cs
- DataServiceQueryContinuation.cs
- RefExpr.cs
- SignatureDescription.cs
- CacheHelper.cs
- SpecialNameAttribute.cs
- ProfileSettings.cs
- XmlSchemaInclude.cs
- ThreadStaticAttribute.cs
- DetailsViewCommandEventArgs.cs
- FormsAuthenticationUser.cs
- SafeNativeMethods.cs
- LogicalExpr.cs
- ExtendedPropertyCollection.cs
- NumberSubstitution.cs
- Registry.cs
- objectquery_tresulttype.cs
- CacheRequest.cs
- ActivityCodeGenerator.cs
- BamlRecordHelper.cs
- ControlAdapter.cs
- CommandBindingCollection.cs
- Deflater.cs
- ThemeableAttribute.cs
- WebResourceAttribute.cs
- DataControlImageButton.cs
- Pen.cs
- Label.cs
- XmlIgnoreAttribute.cs
- DataObjectPastingEventArgs.cs
- ViewManager.cs
- ObjectCloneHelper.cs
- DesignerActionListCollection.cs
- WebControl.cs
- ThousandthOfEmRealPoints.cs
- GraphicsPath.cs
- HwndHost.cs
- TypedAsyncResult.cs
- dbenumerator.cs
- Utils.cs
- DefaultAssemblyResolver.cs
- X509Extension.cs
- InheritanceRules.cs
- CacheOutputQuery.cs
- Parsers.cs
- SspiSecurityTokenProvider.cs
- SettingsSavedEventArgs.cs
- CodeStatement.cs
- FixedSOMPage.cs
- ImageList.cs
- PenThreadPool.cs
- ValueOfAction.cs
- ExpressionNormalizer.cs
- CellTreeNode.cs
- SqlConnectionHelper.cs
- UriTemplateClientFormatter.cs
- CodeIdentifier.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- OleDbSchemaGuid.cs
- BufferAllocator.cs