static void FillContractInfo(EndpointInfo endpoint, IWmiInstance instance)
        {
            Fx.Assert(null != endpoint, "");
            Fx.Assert(null != instance, "");

            instance.SetProperty(AdministrationStrings.Contract, ContractInstanceProvider.ContractReference(endpoint.Contract.Name));
        }
 static void UpdateContracts()
 {
     foreach (ServiceInfo info in new ServiceInfoCollection(ManagementExtension.Services))
     {
         foreach (EndpointInfo endpointInfo in info.Endpoints)
         {
             ContractInstanceProvider.RegisterContract(endpointInfo.Contract);
         }
     }
 }
 private static void FillContractInfo(System.ServiceModel.Administration.EndpointInfo endpoint, IWmiInstance instance)
 {
     instance.SetProperty("Contract", ContractInstanceProvider.ContractReference(endpoint.Contract.Name));
 }