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
- TreeViewAutomationPeer.cs
- ControlIdConverter.cs
- HMAC.cs
- ExtensionFile.cs
- HttpModulesSection.cs
- ActivityDesigner.cs
- GuidConverter.cs
- DataError.cs
- XmlSchemas.cs
- MenuItemBindingCollection.cs
- WindowsFormsLinkLabel.cs
- CharAnimationUsingKeyFrames.cs
- CompositeActivityValidator.cs
- ExecutionContext.cs
- GPStream.cs
- TextServicesCompartment.cs
- NetworkCredential.cs
- IgnorePropertiesAttribute.cs
- DataGridViewColumnStateChangedEventArgs.cs
- CounterCreationDataConverter.cs
- XmlResolver.cs
- DesignerEventService.cs
- Perspective.cs
- BackoffTimeoutHelper.cs
- OracleInternalConnection.cs
- ReadContentAsBinaryHelper.cs
- MailAddressCollection.cs
- PropertyPathWorker.cs
- PropertyBuilder.cs
- ProcessModelSection.cs
- IncrementalCompileAnalyzer.cs
- AnnotationMap.cs
- MaskedTextBoxTextEditorDropDown.cs
- GAC.cs
- GridViewItemAutomationPeer.cs
- SerializationBinder.cs
- DrawingImage.cs
- GridViewCancelEditEventArgs.cs
- RelOps.cs
- DataTableExtensions.cs
- TagPrefixCollection.cs
- DropSource.cs
- EntityContainerEmitter.cs
- WinEventQueueItem.cs
- BufferedMessageWriter.cs
- _OSSOCK.cs
- AsymmetricAlgorithm.cs
- FixedBufferAttribute.cs
- SAPICategories.cs
- RoleBoolean.cs
- ChangeDirector.cs
- StrokeRenderer.cs
- _HeaderInfoTable.cs
- XmlUtil.cs
- TypeUnloadedException.cs
- OdbcFactory.cs
- TemporaryBitmapFile.cs
- QueryStack.cs
- GroupBoxAutomationPeer.cs
- SQLBytesStorage.cs
- GCHandleCookieTable.cs
- CollectionType.cs
- _DigestClient.cs
- safex509handles.cs
- HttpCookie.cs
- AlphaSortedEnumConverter.cs
- DocumentGridPage.cs
- VisualTransition.cs
- EventSinkHelperWriter.cs
- ObjectDataSourceView.cs
- Condition.cs
- InputScope.cs
- LabelDesigner.cs
- ToolStripCustomTypeDescriptor.cs
- DebuggerAttributes.cs
- XmlDocumentType.cs
- SmiGettersStream.cs
- CompilerErrorCollection.cs
- Location.cs
- GridViewColumnCollectionChangedEventArgs.cs
- GroupBoxAutomationPeer.cs
- TextComposition.cs
- XsltFunctions.cs
- DataObject.cs
- PluralizationService.cs
- BinaryMethodMessage.cs
- PolicyStatement.cs
- BitmapInitialize.cs
- TextEffect.cs
- WinInetCache.cs
- ConfigXmlAttribute.cs
- DataBoundLiteralControl.cs
- FloaterParaClient.cs
- MsmqBindingMonitor.cs
- PaperSource.cs
- DependencyObjectPropertyDescriptor.cs
- SmiEventSink_DeferedProcessing.cs
- HostProtectionException.cs
- __TransparentProxy.cs
- BypassElement.cs