static void RegisterService()
		{
			Console.Clear();
			Console.Write("Service Name: ");
			var name = Console.ReadLine();
			Console.Write("Address: ");
			var address = Console.ReadLine();
			Console.Write("Port: ");
			var port = ushort.Parse(Console.ReadLine());
			var registerRequest = new RegisterServiceRequest(name, address, port);
			string addTagChoice;

			do
			{
				Console.Write("Add Tag? (Y/N) => ");
				addTagChoice = Console.ReadKey().KeyChar.ToString().ToUpper();
				if (addTagChoice == "Y")
				{
					Console.Write("\nTag: ");
					registerRequest.Tags.Add(Console.ReadLine());
				}
				Console.Clear();
			} while (addTagChoice != "N");

			string addCheckChoice;

			do
			{
				Console.Write("Add Check? (Y/N) => ");
				addCheckChoice = Console.ReadKey().KeyChar.ToString().ToUpper();
				if (addCheckChoice == "Y")
				{
					var checkRequest = CreateCheck();

					if (checkRequest != null)
					{
						registerRequest.Checks.Add(checkRequest);
					}
				}
				Console.Clear();
			} while (addCheckChoice != "N");

			var consulAgentSender = new ConsulAgentSender();
			consulAgentSender.RegisterService(registerRequest);
			Console.Clear();
			AnyKey();
		}
 public void RegisterService(RegisterServiceRequest registerServiceRequest)
 {
     this.agentSender.RegisterService(registerServiceRequest);
 }
 public void RegisterService(RegisterServiceRequest registerServiceRequest)
 {
     adapter.Initialize("./ServiceConfigurations/ConsulAgentRegisterServiceConfiguration.json");
     adapter.SendAsync(registerServiceRequest);
 }