Beispiel #1
0
        public void LookupMaster(string partitionId, out string masterUrl)
        {
            LookupMasterRequest request =
                NamingServiceMessageFactory.BuildLookupMasterRequest(partitionId);

            LookupMasterResponse response = client.LookupMaster(
                request,
                deadline: DateTime.UtcNow.AddSeconds(30));

            masterUrl = response.MasterUrl;
        }
Beispiel #2
0
        public void Lookup(string serverId, out string serverUrl)
        {
            LookupRequest request =
                NamingServiceMessageFactory.BuildLookupRequest(serverId);

            LookupResponse response = client.Lookup(
                request,
                deadline: DateTime.UtcNow.AddSeconds(30));

            serverUrl = response.ServerUrl;
        }