GetContract() public static method

public static GetContract ( Type contractType ) : ContractDescription
contractType System.Type
return ContractDescription
Exemplo n.º 1
0
 public static ContractDescription GetContract(
     Type contractType)
 {
     if (contractType == null)
     {
         throw new ArgumentNullException("contractType");
     }
     return(ContractDescriptionGenerator.GetContract(contractType));
 }
Exemplo n.º 2
0
 public static ContractDescription GetContract(
     Type contractType, object serviceImplementation)
 {
     if (contractType == null)
     {
         throw new ArgumentNullException("contractType");
     }
     if (serviceImplementation == null)
     {
         throw new ArgumentNullException("serviceImplementation");
     }
     return(ContractDescriptionGenerator.GetContract(contractType, serviceImplementation));
 }
Exemplo n.º 3
0
 public static ContractDescription GetContract(
     Type contractType, Type serviceType)
 {
     return(ContractDescriptionGenerator.GetContract(contractType, serviceType));
 }
Exemplo n.º 4
0
 public static ContractDescription GetContract(
     Type contractType, object serviceImplementation)
 {
     return(ContractDescriptionGenerator.GetContract(contractType, serviceImplementation));
 }