Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using ManagedClient;
- using NLog;
- class Program
- {
- public static Logger MyLogger = LogManager.GetCurrentClassLogger();
- static void Main()
- {
- try
- {
- string connectionString = "host=127.0.0.1;port=6666;user=1;password=1";
- using (ManagedClient64 client = new ManagedClient64())
- {
- client.ParseConnectionString(connectionString);
- client.Connect();
- int maxMfn = client.GetMaxMfn();
- Console.WriteLine("Max MFN={0}", maxMfn);
- }
- }
- catch (Exception exception)
- {
- MyLogger.Error(exception, "Some useful description");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement