예제 #1
0
        private void Init(ItsmeSettings settings)
        {
            Console.WriteLine(Directory.GetCurrentDirectory());
            var response = Wrapper.Init(settings.ToJson());
            var err      = Marshal.PtrToStringAnsi(response);

            if (err == null)
            {
                return;
            }
            var error = Error.FromJson(err);

            throw new ItsmeException(error);
        }
예제 #2
0
 public Client(ItsmeSettings settings) : base()
 {
     Init(settings);
 }