Пример #1
0
 public LogResponse Log(LogRequest request)
 {
     object[] results = this.Invoke("Log", new object[] {
         request
     });
     return((LogResponse)(results[0]));
 }
Пример #2
0
        public static void Log(string type, string methodName, Exception ex)
        {
            //Gradual.Integration.WebService.IntegrationLogSoapClient integration = new Gradual.Integration.WebService.IntegrationLogSoapClient();
            Gradual.Integration.WebService.IntegrationLog integration = new Gradual.Integration.WebService.IntegrationLog();
            Gradual.Integration.WebService.LogRequest     request     = new Gradual.Integration.WebService.LogRequest();
            Error error = new Error();

            request.logName = "SolutionTechExterno";
            request.message = string.Format("Erro no método: {0}.{1}. Tipo: {2}. Erro: {3}. Origem: {4}.",
                                            type,
                                            methodName,
                                            ex.GetType().Name,
                                            ex.Message,
                                            ex.StackTrace);
            request.StackTrace = ex.StackTrace;

            //error.Message = ex.Message;
            //error.StackTrace = ex.StackTrace;
            //error.TimeStamp = DateTime.Now;

            //request.error = error;

            //byte[] lRequest = ObjectToByteArray(request);

            integration.Log(request);
        }
Пример #3
0
 /// <remarks/>
 public void LogAsync(LogRequest request, object userState)
 {
     if ((this.LogOperationCompleted == null))
     {
         this.LogOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLogOperationCompleted);
     }
     this.InvokeAsync("Log", new object[] {
         request
     }, this.LogOperationCompleted, userState);
 }
Пример #4
0
 /// <remarks/>
 public void LogAsync(LogRequest request)
 {
     this.LogAsync(request, null);
 }