Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / AsyncOperationManager.cs / 1305376 / AsyncOperationManager.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System.Collections; using System.Threading; using System.Diagnostics; using System.Security.Permissions; [HostProtection(SharedState = true)] public static class AsyncOperationManager { public static AsyncOperation CreateOperation(object userSuppliedState) { return AsyncOperation.CreateOperation(userSuppliedState, SynchronizationContext); } ///[EditorBrowsable(EditorBrowsableState.Advanced)] public static SynchronizationContext SynchronizationContext { get { if (SynchronizationContext.Current == null) { SynchronizationContext.SetSynchronizationContext(new SynchronizationContext()); } return SynchronizationContext.Current; } // a thread should set this to null when it is done, else the context will never be disposed/GC'd [PermissionSetAttribute(SecurityAction.LinkDemand, Name="FullTrust")] set { SynchronizationContext.SetSynchronizationContext(value); } } } } // 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
- SourceFileInfo.cs
- OperationExecutionFault.cs
- Section.cs
- ChannelSettingsElement.cs
- COM2FontConverter.cs
- AtomMaterializerLog.cs
- DataObjectPastingEventArgs.cs
- CodeIndexerExpression.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- SafeCryptoHandles.cs
- DataGridItemEventArgs.cs
- MetadataPropertyAttribute.cs
- WrappedIUnknown.cs
- EmbeddedObject.cs
- PropertyOverridesTypeEditor.cs
- Int16KeyFrameCollection.cs
- FileUpload.cs
- CodePrimitiveExpression.cs
- CodeEntryPointMethod.cs
- RequestCachingSection.cs
- SafeFileMappingHandle.cs
- X509ChainElement.cs
- XmlWellformedWriterHelpers.cs
- SchemaImporterExtensionElement.cs
- DataDocumentXPathNavigator.cs
- PropertyValueChangedEvent.cs
- Page.cs
- EventMappingSettingsCollection.cs
- IteratorAsyncResult.cs
- DataGridColumnHeadersPresenter.cs
- HandledEventArgs.cs
- Int32CollectionValueSerializer.cs
- ScrollProperties.cs
- DispatchChannelSink.cs
- SchemaImporterExtensionElement.cs
- Expander.cs
- InputProcessorProfiles.cs
- ElementFactory.cs
- CodeDefaultValueExpression.cs
- IteratorFilter.cs
- FactoryGenerator.cs
- LoopExpression.cs
- GroupBox.cs
- ProgressBar.cs
- DataKeyCollection.cs
- RegexReplacement.cs
- ButtonFieldBase.cs
- SqlMethodCallConverter.cs
- TimeoutHelper.cs
- SolidColorBrush.cs
- DifferencingCollection.cs
- MetadataWorkspace.cs
- ImagingCache.cs
- ConfigsHelper.cs
- TextDecorations.cs
- TextureBrush.cs
- TypefaceMap.cs
- CreationContext.cs
- Utils.cs
- ModifierKeysValueSerializer.cs
- TypeSchema.cs
- PersonalizationAdministration.cs
- Model3DCollection.cs
- LocatorPartList.cs
- IsolatedStorageSecurityState.cs
- XmlSchemaNotation.cs
- SerialStream.cs
- _LazyAsyncResult.cs
- ObjectItemCollection.cs
- ListBoxItem.cs
- TransformerConfigurationWizardBase.cs
- RepeaterItemEventArgs.cs
- Image.cs
- WebServiceParameterData.cs
- SSmlParser.cs
- DataGridItem.cs
- IItemContainerGenerator.cs
- columnmapfactory.cs
- Attribute.cs
- StatusBarPanelClickEvent.cs
- XmlRawWriter.cs
- XmlSchemaParticle.cs
- DesignerHierarchicalDataSourceView.cs
- ContainerControl.cs
- StringConverter.cs
- GraphicsPath.cs
- AccessControlList.cs
- X509Utils.cs
- CustomLineCap.cs
- WebPartEditorCancelVerb.cs
- WSHttpBindingCollectionElement.cs
- mediaeventargs.cs
- Classification.cs
- UnknownBitmapDecoder.cs
- x509utils.cs
- SupportsEventValidationAttribute.cs
- _NestedMultipleAsyncResult.cs
- PipelineComponent.cs
- AccessedThroughPropertyAttribute.cs
- SafeFileMappingHandle.cs