Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Activities / System / ServiceModel / Activities / Dispatcher / DurableInstanceProvider.cs / 1305376 / DurableInstanceProvider.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.Activities.Dispatcher { using System.ServiceModel; using System.ServiceModel.Channels; using System.ServiceModel.Dispatcher; class DurableInstanceProvider : IInstanceProvider { object singletonDurableInstance; ServiceHostBase serviceHost; public DurableInstanceProvider(ServiceHostBase serviceHost) { this.serviceHost = serviceHost; } //Dummy Instance stuffed onto InstanceContext object Instance { get { if (singletonDurableInstance == null) { singletonDurableInstance = new object(); } return singletonDurableInstance; } } public object GetInstance(InstanceContext instanceContext, Message message) { return this.Instance; } public object GetInstance(InstanceContext instanceContext) { return this.Instance; } public void ReleaseInstance(InstanceContext instanceContext, object instance) { } } } // 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
- DynamicResourceExtension.cs
- Range.cs
- RequestCachePolicy.cs
- SortKey.cs
- Journaling.cs
- ProfileGroupSettingsCollection.cs
- RecipientInfo.cs
- OledbConnectionStringbuilder.cs
- TextBox.cs
- TargetConverter.cs
- Base64Encoding.cs
- XmlSchemaSimpleContentExtension.cs
- ServicePointManager.cs
- ProviderUtil.cs
- _NTAuthentication.cs
- RowVisual.cs
- TypeLoadException.cs
- ContextBase.cs
- ComPlusTraceRecord.cs
- ColumnWidthChangingEvent.cs
- Rect.cs
- ParagraphVisual.cs
- FlowDocument.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- HostingEnvironmentException.cs
- NativeMethods.cs
- bidPrivateBase.cs
- ClientData.cs
- IteratorDescriptor.cs
- LexicalChunk.cs
- XmlSchemaExporter.cs
- SyndicationSerializer.cs
- MailDefinitionBodyFileNameEditor.cs
- MessagingActivityHelper.cs
- AcceleratedTokenAuthenticator.cs
- StrokeDescriptor.cs
- ScriptManager.cs
- _SSPISessionCache.cs
- FlowSwitchLink.cs
- XmlNamespaceDeclarationsAttribute.cs
- Descriptor.cs
- ClientSettingsStore.cs
- XmlConvert.cs
- NamespaceImport.cs
- ProtectedConfiguration.cs
- NamespaceCollection.cs
- XmlCharCheckingReader.cs
- CircleHotSpot.cs
- ContactManager.cs
- ITreeGenerator.cs
- ScriptingRoleServiceSection.cs
- Pair.cs
- EncryptedData.cs
- EntityDataSourceSelectingEventArgs.cs
- Stackframe.cs
- oledbmetadatacollectionnames.cs
- ZipPackage.cs
- DataFieldEditor.cs
- GlyphRun.cs
- PortCache.cs
- BinaryNegotiation.cs
- Cloud.cs
- IdentityHolder.cs
- ListItemCollection.cs
- WorkflowRuntimeServiceElement.cs
- XmlHierarchyData.cs
- DataBoundControl.cs
- MouseEventArgs.cs
- SoapSchemaExporter.cs
- SchemaDeclBase.cs
- FontStyle.cs
- ProfileModule.cs
- Image.cs
- DesignerDataTable.cs
- AnnotationMap.cs
- SelectionEditor.cs
- VirtualPathUtility.cs
- XmlNamespaceMappingCollection.cs
- CompositeDataBoundControl.cs
- WaveHeader.cs
- PermissionListSet.cs
- InputBuffer.cs
- SrgsDocument.cs
- ChameleonKey.cs
- UnauthorizedWebPart.cs
- HttpModuleAction.cs
- SourceFileBuildProvider.cs
- CFGGrammar.cs
- ToolStripSplitStackLayout.cs
- FunctionQuery.cs
- CultureInfo.cs
- CroppedBitmap.cs
- EntityDataSourceContextCreatedEventArgs.cs
- httpserverutility.cs
- ConnectionStringsSection.cs
- DbDataRecord.cs
- EventDescriptorCollection.cs
- ITreeGenerator.cs
- EtwProvider.cs
- IriParsingElement.cs