28 references to ServiceContractGenerationOptions
dotnet-svcutil-lib (28)
CodeDomFixup\VisitorFixup.cs (2)
32new CreateCallbackImpl((generator.Options & ServiceContractGenerationOptions.TaskBasedAsynchronousMethod) == ServiceContractGenerationOptions.TaskBasedAsynchronousMethod, generator),
CodeDomFixup\WcfCodeGenerationExtension.cs (3)
71generator.Options &= ~ServiceContractGenerationOptions.AsynchronousMethods; 72generator.Options &= ~ServiceContractGenerationOptions.EventBasedAsynchronousMethods; 73generator.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)
278contractGenerator.Options |= ServiceContractGenerationOptions.AsynchronousMethods; 279contractGenerator.Options |= ServiceContractGenerationOptions.TaskBasedAsynchronousMethod; 283contractGenerator.Options |= ServiceContractGenerationOptions.InternalTypes; 287contractGenerator.Options &= ~ServiceContractGenerationOptions.InternalTypes; 292contractGenerator.Options |= ServiceContractGenerationOptions.TypedMessages; 296contractGenerator.Options &= ~ServiceContractGenerationOptions.TypedMessages; 301contractGenerator.Options &= ~ServiceContractGenerationOptions.ChannelInterface & ~ServiceContractGenerationOptions.ClientClass;