Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / ComIntegration / ComPlusContractBehavior.cs / 1 / ComPlusContractBehavior.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.ComIntegration { using System; using System.ServiceModel.Channels; using System.ServiceModel; using System.ServiceModel.Dispatcher; using System.ServiceModel.Description; using System.Collections.Generic; class ComPlusContractBehavior : IContractBehavior { ServiceInfo info; public ComPlusContractBehavior(ServiceInfo info) { this.info = info; } public void Validate(ContractDescription description, ServiceEndpoint endpoint) { } public void AddBindingParameters(ContractDescription description, ServiceEndpoint endpoint, BindingParameterCollection parameters) { } public void ApplyDispatchBehavior(ContractDescription description, ServiceEndpoint endpoint, DispatchRuntime dispatch) { dispatch.InstanceProvider = new ComPlusInstanceProvider(info); dispatch.InstanceContextInitializers.Add (new ComPlusInstanceContextInitializer (info)); foreach(DispatchOperation operation in dispatch.Operations) { operation.CallContextInitializers.Add( new ComPlusThreadInitializer( description, operation, info)); } } public void ApplyClientBehavior(ContractDescription description, ServiceEndpoint endpoint, ClientRuntime proxy) { return; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlInputImage.cs
- DataObject.cs
- formatter.cs
- HighContrastHelper.cs
- ClientSideProviderDescription.cs
- VerticalAlignConverter.cs
- DrawingServices.cs
- PropertyGridCommands.cs
- ResourceDictionary.cs
- ClassImporter.cs
- Transform3D.cs
- StoragePropertyMapping.cs
- Margins.cs
- RuntimeArgumentHandle.cs
- WindowsListViewItemStartMenu.cs
- ColumnHeaderCollectionEditor.cs
- ProcessModuleCollection.cs
- XmlNullResolver.cs
- SqlMethodAttribute.cs
- RectAnimationBase.cs
- ExceptionCollection.cs
- TypeName.cs
- ConvertersCollection.cs
- ParameterModifier.cs
- DataTableExtensions.cs
- ActivityWithResultConverter.cs
- SafeThemeHandle.cs
- SerializableReadOnlyDictionary.cs
- GeneratedView.cs
- DeviceContext.cs
- Tablet.cs
- TextPointerBase.cs
- HtmlElementCollection.cs
- ProfilePropertySettings.cs
- Focus.cs
- PenThreadWorker.cs
- WsdlInspector.cs
- PropertyMap.cs
- ThemeableAttribute.cs
- ExchangeUtilities.cs
- SqlGatherProducedAliases.cs
- TextCompositionManager.cs
- DataGridViewCellStateChangedEventArgs.cs
- WindowsListBox.cs
- CustomErrorCollection.cs
- SharedPerformanceCounter.cs
- FlowLayout.cs
- UrlRoutingModule.cs
- RightsManagementEncryptionTransform.cs
- FileSecurity.cs
- ISO2022Encoding.cs
- TextTreeExtractElementUndoUnit.cs
- OdbcRowUpdatingEvent.cs
- contentDescriptor.cs
- WpfSharedBamlSchemaContext.cs
- MediaContextNotificationWindow.cs
- ConstraintConverter.cs
- AuthStoreRoleProvider.cs
- DiagnosticTraceSource.cs
- LinearKeyFrames.cs
- DefaultEventAttribute.cs
- SQLChars.cs
- DynamicArgumentDesigner.xaml.cs
- initElementDictionary.cs
- CryptoConfig.cs
- XmlParserContext.cs
- MembershipAdapter.cs
- ColumnTypeConverter.cs
- SwitchAttribute.cs
- AutomationTextAttribute.cs
- SQLResource.cs
- CompleteWizardStep.cs
- ScriptBehaviorDescriptor.cs
- FormsIdentity.cs
- NullableLongAverageAggregationOperator.cs
- AutoCompleteStringCollection.cs
- ListBase.cs
- PinnedBufferMemoryStream.cs
- HostingEnvironmentException.cs
- StatusBarAutomationPeer.cs
- SqlDataSourceEnumerator.cs
- Int64KeyFrameCollection.cs
- Base64Decoder.cs
- ProfileEventArgs.cs
- DefaultEventAttribute.cs
- _AutoWebProxyScriptHelper.cs
- Panel.cs
- WebPartTransformer.cs
- FrameDimension.cs
- OracleCommandSet.cs
- CodeCatchClause.cs
- DataView.cs
- InputLanguageEventArgs.cs
- FormViewDeleteEventArgs.cs
- WpfPayload.cs
- TreeView.cs
- XmlILConstructAnalyzer.cs
- UserPreferenceChangingEventArgs.cs
- ADMembershipUser.cs
- SendingRequestEventArgs.cs