Example #1
0
        static void Main(string[] args)
        {
            Program app = new Program();

            try
            {
                String[] arguments = Environment.GetCommandLineArgs();
                app.httpClient = CrmAPIHelper.CreateConnection(arguments);
                app.RegisterWebHook();
            }
            catch (System.Exception ex)
            {
                DisplayException(ex);
            }
            finally
            {
                if (app.httpClient != null)
                {
                    app.httpClient.Dispose();
                }
            }
        }