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
- dbdatarecord.cs
- EndPoint.cs
- TextBox.cs
- ContainerSelectorBehavior.cs
- Queue.cs
- _AutoWebProxyScriptHelper.cs
- GridEntry.cs
- TemplateBindingExpressionConverter.cs
- HtmlInputReset.cs
- ListenerElementsCollection.cs
- FixedHighlight.cs
- EpmAttributeNameBuilder.cs
- MsmqHostedTransportConfiguration.cs
- ApplicationManager.cs
- securitycriticaldataClass.cs
- OdbcError.cs
- ClientScriptManagerWrapper.cs
- HealthMonitoringSection.cs
- ProviderSettings.cs
- X509CertificateEndpointIdentity.cs
- PageThemeParser.cs
- ContextQuery.cs
- DecimalFormatter.cs
- InfoCardKeyedHashAlgorithm.cs
- baseaxisquery.cs
- ListControl.cs
- PrivilegedConfigurationManager.cs
- ArgumentValidation.cs
- XmlSchemaProviderAttribute.cs
- XpsInterleavingPolicy.cs
- DrawingImage.cs
- SqlCacheDependency.cs
- RequiredAttributeAttribute.cs
- SingleConverter.cs
- ClientTargetCollection.cs
- DebugController.cs
- DataGridBoolColumn.cs
- MachineKeyConverter.cs
- GorillaCodec.cs
- C14NUtil.cs
- DoubleConverter.cs
- Message.cs
- TextProviderWrapper.cs
- Add.cs
- NamespaceMapping.cs
- VBIdentifierNameEditor.cs
- BehaviorDragDropEventArgs.cs
- assertwrapper.cs
- XmlSchemaProviderAttribute.cs
- StylusDevice.cs
- Exceptions.cs
- BitmapImage.cs
- Vector3DCollectionValueSerializer.cs
- InternalControlCollection.cs
- DragDrop.cs
- NonParentingControl.cs
- ToolStripItemClickedEventArgs.cs
- UnsafeNativeMethods.cs
- QilGeneratorEnv.cs
- TextBreakpoint.cs
- InputLangChangeRequestEvent.cs
- SoapSchemaMember.cs
- QuadTree.cs
- Activity.cs
- MethodInfo.cs
- ContainerParaClient.cs
- StandardToolWindows.cs
- ListViewInsertionMark.cs
- DigestTraceRecordHelper.cs
- CustomErrorsSectionWrapper.cs
- BaseTemplateBuildProvider.cs
- Pkcs7Signer.cs
- sqlnorm.cs
- SqlVersion.cs
- DoubleAverageAggregationOperator.cs
- GenericAuthenticationEventArgs.cs
- ScriptDescriptor.cs
- OdbcConnectionHandle.cs
- ExtendedProtectionPolicyElement.cs
- TypeDescriptionProvider.cs
- SEHException.cs
- ClientCredentialsElement.cs
- Light.cs
- DbInsertCommandTree.cs
- DebugController.cs
- LeaseManager.cs
- KnownBoxes.cs
- JsonSerializer.cs
- XamlToRtfParser.cs
- TypedElement.cs
- SerializerDescriptor.cs
- CallbackTimeoutsElement.cs
- DataControlCommands.cs
- WebContext.cs
- MarkupCompilePass2.cs
- MemberDomainMap.cs
- LambdaCompiler.Generated.cs
- XmlDictionaryString.cs
- XPathNodeHelper.cs
- PriorityRange.cs