20 references to ServiceContractGenerator
dotnet-svcutil-lib (20)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ClientClassGenerator.cs (2)
168
clientType.BaseTypes.Add(new CodeTypeReference(context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(ClientBase<>)).BaseType, context.ContractTypeReference));
170
clientType.BaseTypes.Add(new CodeTypeReference(context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(DuplexClientBase<>)).BaseType, context.ContractTypeReference));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (3)
83
context.SyncMethod.CustomAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.
ServiceContractGenerator
, dataContractFormatAttribute));
219
fieldAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(_context.Contract.
ServiceContractGenerator
, dataMemberAttribute));
231
typeAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(_context.Contract.
ServiceContractGenerator
, new DataContractAttribute()));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (4)
803
contract.
ServiceContractGenerator
.GeneratedTypedMessages.Add(message, codeTypeReference);
814
return contract.
ServiceContractGenerator
.GeneratedTypedMessages.TryGetValue(message, out codeTypeReference);
925
parent._context.Contract.
ServiceContractGenerator
.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent._request.MessageName), true/*isWarning*/));
934
parent._context.Contract.
ServiceContractGenerator
.Errors.Add(new MetadataConversionError(string.Format(SRServiceModel.SFxCannotImportAsParameters_HeadersAreIgnoredInEncoded, parent._response.MessageName), true/*isWarning*/));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceContractGenerator.cs (9)
289
beginMethod.Parameters.Add(new CodeParameterDeclarationExpression(_context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(AsyncCallback)), Strings.AsyncCallbackArgName));
290
beginMethod.Parameters.Add(new CodeParameterDeclarationExpression(_context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(object)), Strings.AsyncStateArgName));
291
beginMethod.ReturnType = _context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(IAsyncResult));
296
endMethod.Parameters.Add(new CodeParameterDeclarationExpression(_context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(IAsyncResult)), Strings.AsyncResultArgName));
343
CodeAttributeDeclaration serviceContractAttr = new CodeAttributeDeclaration(context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(ServiceContractAttribute)));
398
CodeAttributeDeclaration serviceOperationAttr = new CodeAttributeDeclaration(_context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(OperationContractAttribute)));
440
channelType.BaseTypes.Add(context.
ServiceContractGenerator
.GetCodeTypeReference(typeof(IClientChannel)));
604
CodeTypeReference exceptionTypeReference = fault.DetailType != null ? context.Contract.
ServiceContractGenerator
.GetCodeTypeReference(fault.DetailType) : fault.DetailTypeReference;
824
CodeAttributeDeclaration attrDecl = new CodeAttributeDeclaration(context.Contract.
ServiceContractGenerator
.GetCodeTypeReference(typeof(TransactionFlowAttribute)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\XmlSerializerOperationGenerator.cs (2)
148
context.SyncMethod.CustomAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(context.Contract.
ServiceContractGenerator
, xmlSerializerFormatAttribute));
253
typeAttributes.Add(OperationGenerator.GenerateAttributeDeclaration(_context.Contract.
ServiceContractGenerator
, xmlType));