30 references to ServiceContractGenerationOptions
dotnet-svcutil-lib (30)
CodeDomFixup\VisitorFixup.cs (4)
14ArrayOfXElementTypeHelper arrayOfXElementTypeHelper = new ArrayOfXElementTypeHelper((generator.Options & ServiceContractGenerationOptions.InternalTypes) == ServiceContractGenerationOptions.InternalTypes, generator.TargetCompileUnit); 27new CreateCallbackImpl((generator.Options & ServiceContractGenerationOptions.TaskBasedAsynchronousMethod) == ServiceContractGenerationOptions.TaskBasedAsynchronousMethod, generator),
CodeDomFixup\WcfCodeGenerationExtension.cs (3)
84generator.Options &= ~ServiceContractGenerationOptions.AsynchronousMethods; 85generator.Options &= ~ServiceContractGenerationOptions.EventBasedAsynchronousMethods; 86generator.Options |= ServiceContractGenerationOptions.TaskBasedAsynchronousMethod;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (1)
130_messageContractType = context.ServiceContractGenerator.OptionsInternal.IsSet(ServiceContractGenerationOptions.TypedMessages) ? MessageContractType.WrappedMessageContract : MessageContractType.None;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (14)
25private OptionsHelper _options = new OptionsHelper(ServiceContractGenerationOptions.ChannelInterface | 26ServiceContractGenerationOptions.ClientClass); 74public ServiceContractGenerationOptions Options 132context = new ContextInitializer(this, new CodeTypeFactory(this, _options.IsSet(ServiceContractGenerationOptions.InternalTypes))).CreateContext(contractDescription); 160if (_options.IsSet(ServiceContractGenerationOptions.ChannelInterface)) 165if (_options.IsSet(ServiceContractGenerationOptions.ClientClass)) 168bool tryAddHelperMethod = !_options.IsSet(ServiceContractGenerationOptions.TypedMessages); 169bool generateEventAsyncMethods = _options.IsSet(ServiceContractGenerationOptions.EventBasedAsynchronousMethods); 210_asyncMethods = parent.OptionsInternal.IsSet(ServiceContractGenerationOptions.AsynchronousMethods); 211_taskMethod = parent.OptionsInternal.IsSet(ServiceContractGenerationOptions.TaskBasedAsynchronousMethod); 773public readonly ServiceContractGenerationOptions Options; 775public OptionsHelper(ServiceContractGenerationOptions options) 780public bool IsSet(ServiceContractGenerationOptions option) 784return ((this.Options & option) != ServiceContractGenerationOptions.None);
ImportModule.cs (8)
230contractGenerator.Options |= ServiceContractGenerationOptions.AsynchronousMethods; 231contractGenerator.Options |= ServiceContractGenerationOptions.TaskBasedAsynchronousMethod; 235contractGenerator.Options |= ServiceContractGenerationOptions.InternalTypes; 239contractGenerator.Options &= ~ServiceContractGenerationOptions.InternalTypes; 244contractGenerator.Options |= ServiceContractGenerationOptions.TypedMessages; 248contractGenerator.Options &= ~ServiceContractGenerationOptions.TypedMessages; 253contractGenerator.Options &= ~ServiceContractGenerationOptions.ChannelInterface & ~ServiceContractGenerationOptions.ClientClass;