Beispiel #1
0
 public static Location[] GetLocationsForStructure(AnnotateStructuresClient proxy, long ID)
 {
     return proxy.GetLocationsForStructure(ID);
 }
Beispiel #2
0
 public static SortedDictionary<long, List<StructureLink>> GetLinkedStructures(AnnotateStructuresClient proxy)
 {
     StructureLink[] LinkedStructures = proxy.GetLinkedStructures();
     return GetLinkedStructures(LinkedStructures);
 }
Beispiel #3
0
        public static AnnotateStructuresClient CreateStructureClient()
        {
            AnnotateStructuresClient proxy = new AnnotateStructuresClient();
            proxy.Endpoint.Address = new System.ServiceModel.EndpointAddress(State.serviceDictionary[State.selectedService]);
            proxy.ClientCredentials.UserName.UserName = userCredentials.UserName;
            proxy.ClientCredentials.UserName.Password = userCredentials.Password;
            //    if (proxy.State != System.ServiceModel.CommunicationState.Opened)
            //        proxy.Open();

            return proxy;
        }