Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Compiler / CodeGeneration / CodeGenerationManager.cs / 1305376 / CodeGenerationManager.cs
namespace System.Workflow.ComponentModel.Compiler { using System; using System.ComponentModel.Design.Serialization; using System.Collections; using System.Collections.Generic; #region CodeGenerationManager public sealed class CodeGenerationManager : IServiceProvider { private Hashtable hashOfGenerators = new Hashtable(); private IServiceProvider serviceProvider = null; private ContextStack context = null; public CodeGenerationManager(IServiceProvider serviceProvider) { this.serviceProvider = serviceProvider; } public ContextStack Context { get { if (this.context == null) this.context = new ContextStack(); return this.context; } } #region IServiceProvider Members public object GetService(Type serviceType) { if (this.serviceProvider == null) return null; return this.serviceProvider.GetService(serviceType); } #endregion public ActivityCodeGenerator[] GetCodeGenerators(Type type) { if (type == null) throw new ArgumentNullException("type"); if (this.hashOfGenerators.Contains(type)) return ((List)this.hashOfGenerators[type]).ToArray(); List generators = new List (); // Return validators for other types such as Bind, XmolDocument, etc. foreach (ActivityCodeGenerator generator in ComponentDispenser.CreateComponents(type, typeof(ActivityCodeGeneratorAttribute))) { generators.Add(generator); } this.hashOfGenerators[type] = generators; return generators.ToArray(); } } #endregion } // 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
- Compiler.cs
- CapabilitiesPattern.cs
- ColumnWidthChangingEvent.cs
- BitmapPalettes.cs
- StateRuntime.cs
- OleDbStruct.cs
- DataGridViewRowPostPaintEventArgs.cs
- DataService.cs
- BaseValidator.cs
- FormViewDeleteEventArgs.cs
- FlowSwitchDesigner.xaml.cs
- BuildProvidersCompiler.cs
- EmptyQuery.cs
- TrustManagerPromptUI.cs
- NameObjectCollectionBase.cs
- InputScopeNameConverter.cs
- BlurEffect.cs
- CngProperty.cs
- SqlResolver.cs
- PasswordPropertyTextAttribute.cs
- VolatileEnlistmentState.cs
- IndependentAnimationStorage.cs
- ExtenderControl.cs
- FormView.cs
- AuthenticationConfig.cs
- Fault.cs
- XmlILAnnotation.cs
- WebExceptionStatus.cs
- CodeSnippetTypeMember.cs
- MenuCommand.cs
- XNodeValidator.cs
- DelegateSerializationHolder.cs
- CompositeActivityTypeDescriptorProvider.cs
- ModelItemDictionaryImpl.cs
- IgnorePropertiesAttribute.cs
- SecurityTokenAttachmentMode.cs
- DesignerProperties.cs
- XPathSelfQuery.cs
- FixedFlowMap.cs
- ExpandableObjectConverter.cs
- WorkflowApplicationCompletedEventArgs.cs
- CodeSubDirectory.cs
- RegistryPermission.cs
- InstanceValue.cs
- LockedAssemblyCache.cs
- XmlUtil.cs
- TextParagraph.cs
- ModuleBuilderData.cs
- CqlParser.cs
- ReliableInputConnection.cs
- Claim.cs
- RootBrowserWindowAutomationPeer.cs
- XmlObjectSerializerReadContext.cs
- DataBindingCollection.cs
- XmlComplianceUtil.cs
- CreateUserWizardAutoFormat.cs
- ColumnHeader.cs
- RetrieveVirtualItemEventArgs.cs
- StringFunctions.cs
- AppDomainFactory.cs
- CodePropertyReferenceExpression.cs
- DoubleAnimationBase.cs
- metadatamappinghashervisitor.cs
- AuthenticationModuleElementCollection.cs
- ClockController.cs
- InputMethodStateTypeInfo.cs
- MemberRestriction.cs
- Gdiplus.cs
- IdentifierCollection.cs
- XmlDictionary.cs
- KeyboardDevice.cs
- FrameworkElementFactory.cs
- SortedDictionary.cs
- EventWaitHandle.cs
- HttpWrapper.cs
- XsltException.cs
- IdnElement.cs
- GridViewAutomationPeer.cs
- _Win32.cs
- IgnoreFlushAndCloseStream.cs
- PerfService.cs
- SpeechSeg.cs
- ChildTable.cs
- IsolatedStorageSecurityState.cs
- TextLine.cs
- WSDualHttpSecurity.cs
- TextServicesDisplayAttribute.cs
- ViewRendering.cs
- JulianCalendar.cs
- XmlAttributeCache.cs
- ImageListStreamer.cs
- BitmapPalette.cs
- SudsWriter.cs
- XamlStream.cs
- XmlSchemaType.cs
- InstanceKeyView.cs
- ClientBuildManager.cs
- EventDescriptor.cs
- MenuAdapter.cs
- Substitution.cs