Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public Client(ItsmeSettings settings) : base()
 {
     Init(settings);
 }