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
- AspProxy.cs
- SqlRemoveConstantOrderBy.cs
- DiscoveryClientReferences.cs
- AdornerDecorator.cs
- XmlQueryRuntime.cs
- WsatEtwTraceListener.cs
- TopClause.cs
- CodeLinePragma.cs
- XmlnsDictionary.cs
- WindowsFormsHost.cs
- EventWaitHandle.cs
- SystemIPGlobalStatistics.cs
- SecUtil.cs
- Rectangle.cs
- GetPageCompletedEventArgs.cs
- DbProviderFactory.cs
- externdll.cs
- TrackBar.cs
- PageHandlerFactory.cs
- SystemTcpConnection.cs
- OleDbInfoMessageEvent.cs
- SafeRegistryHandle.cs
- CommandBinding.cs
- PeerTransportListenAddressValidator.cs
- BooleanConverter.cs
- RelationshipWrapper.cs
- ResourcePermissionBaseEntry.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- WebFaultException.cs
- FolderBrowserDialog.cs
- _DigestClient.cs
- ConfigXmlSignificantWhitespace.cs
- OdbcPermission.cs
- DebugView.cs
- TdsParameterSetter.cs
- HttpWebResponse.cs
- ErrorLog.cs
- X509ChainPolicy.cs
- LookupNode.cs
- DefaultAssemblyResolver.cs
- XmlSchemaProviderAttribute.cs
- PointAnimationBase.cs
- DataBindingExpressionBuilder.cs
- DefinitionUpdate.cs
- RootDesignerSerializerAttribute.cs
- TagMapCollection.cs
- UpdateProgress.cs
- SubpageParaClient.cs
- EmptyStringExpandableObjectConverter.cs
- IntellisenseTextBox.cs
- _HelperAsyncResults.cs
- TemplateInstanceAttribute.cs
- Evidence.cs
- DbgCompiler.cs
- PersonalizationStateQuery.cs
- DbParameterHelper.cs
- HttpProfileGroupBase.cs
- EntityModelBuildProvider.cs
- ToolStripTemplateNode.cs
- XPathScanner.cs
- HostingEnvironment.cs
- Queue.cs
- CrossAppDomainChannel.cs
- XmlnsCompatibleWithAttribute.cs
- ColumnWidthChangedEvent.cs
- DataGridViewCellCollection.cs
- Number.cs
- XmlSchemaInferenceException.cs
- returneventsaver.cs
- Model3D.cs
- BooleanStorage.cs
- SingleQueryOperator.cs
- Message.cs
- TextProviderWrapper.cs
- HttpModuleAction.cs
- WebPartConnectionsConnectVerb.cs
- CodeTypeDeclarationCollection.cs
- AuthenticatingEventArgs.cs
- WsdlWriter.cs
- HttpCachePolicyElement.cs
- MetadataPropertyCollection.cs
- DesignerUtils.cs
- Utils.cs
- ToolStripDropDownButton.cs
- InkPresenter.cs
- MemoryPressure.cs
- TextParagraphView.cs
- CodeTypeDeclarationCollection.cs
- Path.cs
- InteropBitmapSource.cs
- TextElementCollectionHelper.cs
- GeneralTransformGroup.cs
- LeafCellTreeNode.cs
- ConstraintManager.cs
- DecoderNLS.cs
- WorkflowInspectionServices.cs
- SqlDataSourceView.cs
- ProgressiveCrcCalculatingStream.cs
- ResourceExpressionBuilder.cs
- NativeWindow.cs