Пример #1
0
        // DEPRECATED REMOVED IN A NEW VERSION
        #endregion

        //con
        public ServiceLogic()
        {
            sSource = "MicrotingService";
            sLog    = "Application";
            bool sourceExists;

            try
            {
                EventLog.CreateEventSource(sSource, "Application");
            }
            catch (SecurityException)
            {
                sSource = "Application";
            }
            catch (Exception e)
            {
                if (!e.HResult.Equals(-2147024809))
                {
                    sSource = "Application";
                }

                LogEvent(e.Message);
                try
                {
                    LogEvent(e.InnerException.Message);
                }
                catch
                {
                }
            }
            try
            {
                LogEvent("Service called");
                {
                    serviceLocation = "";
                    sdkCore         = new eFormCore.Core();
                    outLook         = new OutlookCore.Core();
                }
                LogEvent("Service completed");
            }
            catch (Exception ex)
            {
                LogException(t.PrintException("Fatal Exception", ex));
            }
        }