Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.WorkflowServices / System / Workflow / Activities / LogicalChannel.cs / 1305376 / LogicalChannel.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Workflow.Activities { using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; using System.ComponentModel.Design; using System.ComponentModel.Design.Serialization; using System.Diagnostics.CodeAnalysis; using System.ServiceModel; using System.ServiceModel.Channels; using System.ServiceModel.Dispatcher; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; using System.Workflow.ComponentModel.Serialization; using System.Xml; [Serializable] internal sealed class LogicalChannel { string configurationName = string.Empty; IDictionarycontext = SerializableReadOnlyDictionary .Empty; Type contractType = null; string customAddress = null; bool initialized = false; Guid instanceId; string name = null; public LogicalChannel() { this.instanceId = Guid.NewGuid(); } public LogicalChannel(string name, Type contractType) { this.instanceId = Guid.NewGuid(); this.name = name; this.contractType = contractType; } [DefaultValue(null)] [Browsable(false)] public string ConfigurationName { get { return this.configurationName; } } [Browsable(false)] public IDictionary Context { get { return this.context; } set { if (value != null) { this.context = new ContextDictionary(value); } else { this.context = SerializableReadOnlyDictionary .Empty; } } } [DefaultValue(null)] [Browsable(false)] public Type ContractType { get { return this.contractType; } } [DefaultValue(null)] [Browsable(false)] public string CustomAddress { get { return this.customAddress; } } [DefaultValue(false)] [Browsable(false)] public bool Initialized { get { return this.initialized; } } [DefaultValue(null)] [Browsable(false)] public string Name { get { return this.name; } } internal Guid InstanceId { get { return this.instanceId; } } public void Initialize(string configurationName, string customAddress) { if (this.Initialized) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError( new InvalidOperationException(SR2.GetString(SR2.Error_LogicalChannelAlreadyInitialized, this.Name))); } this.configurationName = configurationName ?? string.Empty; this.customAddress = customAddress; this.initialized = true; } } } // 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
- ParallelDesigner.cs
- GraphicsContainer.cs
- ExecutorLocksHeldException.cs
- SrgsElementList.cs
- PropertyTabAttribute.cs
- smtppermission.cs
- PageHandlerFactory.cs
- RNGCryptoServiceProvider.cs
- PersonalizationStateQuery.cs
- ReferencedCategoriesDocument.cs
- Query.cs
- XmlUtil.cs
- OleStrCAMarshaler.cs
- FileDataSourceCache.cs
- IndentedWriter.cs
- AxisAngleRotation3D.cs
- Process.cs
- SimpleHandlerBuildProvider.cs
- EntityCommandDefinition.cs
- Cast.cs
- ThreadSafeList.cs
- ObjectHelper.cs
- ListItemCollection.cs
- LiteralControl.cs
- HttpRequest.cs
- WorkflowServiceBuildProvider.cs
- CheckPair.cs
- DirectionalLight.cs
- XmlFormatExtensionPointAttribute.cs
- NativeMethods.cs
- EmptyCollection.cs
- PropertyChangeTracker.cs
- ISAPIWorkerRequest.cs
- JsonXmlDataContract.cs
- SendMailErrorEventArgs.cs
- EventDescriptorCollection.cs
- XmlCharCheckingWriter.cs
- CodeGroup.cs
- Relationship.cs
- DetailsViewInsertedEventArgs.cs
- DataSourceView.cs
- SoapObjectWriter.cs
- ColumnReorderedEventArgs.cs
- AttributeProviderAttribute.cs
- ProxyWebPartConnectionCollection.cs
- PropertyItemInternal.cs
- PrintPageEvent.cs
- MenuAdapter.cs
- PageTheme.cs
- RegisteredExpandoAttribute.cs
- InheritedPropertyChangedEventArgs.cs
- DataSourceBooleanViewSchemaConverter.cs
- RuleRefElement.cs
- MSAAWinEventWrap.cs
- BevelBitmapEffect.cs
- DiagnosticsConfigurationHandler.cs
- Dispatcher.cs
- TrackingCondition.cs
- ResourceExpression.cs
- securitycriticaldata.cs
- ClientTarget.cs
- PropertiesTab.cs
- DynamicResourceExtension.cs
- Configuration.cs
- Transform.cs
- WebProxyScriptElement.cs
- TypeSource.cs
- BamlMapTable.cs
- SoapIncludeAttribute.cs
- DetailsViewModeEventArgs.cs
- BitmapEffectRenderDataResource.cs
- DocumentGrid.cs
- StringFreezingAttribute.cs
- HwndStylusInputProvider.cs
- ParallelDesigner.xaml.cs
- AppDomainUnloadedException.cs
- DockEditor.cs
- DataServiceRequestArgs.cs
- KnownColorTable.cs
- TraceUtility.cs
- ExeContext.cs
- Triplet.cs
- VideoDrawing.cs
- ReadOnlyDataSourceView.cs
- CngKeyBlobFormat.cs
- CollectionCodeDomSerializer.cs
- IChannel.cs
- EntityViewGenerationConstants.cs
- InsufficientMemoryException.cs
- SettingsAttributes.cs
- wgx_commands.cs
- CachedFontFamily.cs
- XmlReflectionMember.cs
- BaseProcessor.cs
- PrimitiveXmlSerializers.cs
- ComUdtElement.cs
- CompilationSection.cs
- SqlCacheDependencyDatabaseCollection.cs
- CSharpCodeProvider.cs
- EditorPart.cs