Ejemplo n.º 1
0
        internal static void ConsolidateByAttribute(IExplicitServiceContract attribute, IDictionary <string, ContractDescription> implementedContracts)
        {
            var keysToRemove = implementedContracts.Keys.Where(k => k != attribute.ServiceContract.FullName).ToList();

            foreach (var key in keysToRemove)
            {
                implementedContracts.Remove(key);
            }
        }
Ejemplo n.º 2
0
 internal static void ConsolidateToSingleContract(IExplicitServiceContract attribute, IDictionary <string, ContractDescription> implementedContracts)
 {
     //var attribute = ;
     if (attribute != null && attribute.ServiceContract != null)
     {
         ConsolidateByAttribute(attribute, implementedContracts);
         return;
     }
     ConsolidateByInheritance(implementedContracts);
 }