public void GetServerInformation(out string serverName, out string loggPathDirectory) { serverName = string.Empty; loggPathDirectory = string.Empty; GetServerInformationResponse response = TracingService.GetServerInformation(); if (response.GetServerInformationResult != null) { serverName = response.GetServerInformationResult.ServerHost; loggPathDirectory = response.GetServerInformationResult.DirectoryPath; } }
public GetServerInformationResponse GetServerInformation() { GetServerInformationAction action = PolicyInjection.Create <GetServerInformationAction>(); GetServerInformationResult businessResult = action.Execute(); GetServerInformationResponse response = new GetServerInformationResponse(); if (businessResult != null) { response.GetServerInformationResult = Translators.GetServerInformationTranslator.TranslateFromBusinessToService(businessResult); } return(response); }