Exemple #1
0
 /// <summary>
 /// Handles the UnknownMessageReceived event of the serviceHost control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="UnknownMessageReceivedEventArgs" /> instance containing the event data.</param>
 /// <autogeneratedoc />
 private static void ServiceHost_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     if (_Logger.IsWarnEnabled)
     {
         _Logger.Warn("دریافت پیام ناشناخته: {0}", e.Message);
     }
 }
Exemple #2
0
 void _host_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     if (UnknownMessageReceived != null)
     {
         UnknownMessageReceived(this, e);
     }
 }
        void OnServiceHostUnknownMessageReceived(string id, UnknownMessageReceivedEventArgs e)
        {
            var writer = new StringWriter();
            var dict   = XmlDictionaryWriter.CreateDictionaryWriter(XmlWriter.Create(writer));

            e.Message.WriteMessage(dict);
            _logger.Warn(string.Concat("[", id, "] ", "UNKNOWN MESSAGE RECEIVED: {0}"), writer.ToString());
        }
Exemple #4
0
 /// <summary>
 /// Service host received unknown message event.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ServiceHostUnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     _communicationState = _serviceHost.State;
     if (_onUnknownMessageReceived != null)
     {
         _onUnknownMessageReceived(e);
     }
 }
Exemple #5
0
        void OnServiceHostUnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
        {
            var writer = new StringWriter();
            var dict   = XmlDictionaryWriter.CreateDictionaryWriter(XmlWriter.Create(writer));

            e.Message.WriteMessage(dict);
            _logger.Warn("UNKNOWN MESSAGE RECEIVED: {0}", writer);
        }
        void channel_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
        {
            var channel = Client as IClientChannel;

            if (channel != null)
            {
                SetConnectivityErrorFlag(new CommunicationObjectFaultedException("Unknown message received"));
            }
        }
 private void ServiceHost_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     this._loggerService.LogMessage(e.Message.ToString(), LogLevel.Debug);
 }
Exemple #8
0
 void ServiceHostUnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     WriteToEventLog("ServiceHostUnknownMessageReceived");
 }
Exemple #9
0
 void serviceHost_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     Logger.Log("Unknown Message Received");
 }
 void _host_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     Log(string.Format("Unknown message received: {0}", e.Message));
 }
Exemple #11
0
 void host_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     SRVeventLog.WriteEntry(e.Message.ToString(), EventLogEntryType.Error);
 }
Exemple #12
0
 void host_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
 }
Exemple #13
0
 void host_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     throw new NotImplementedException();
 }
Exemple #14
0
 static void sh_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
 }
Exemple #15
0
 private static void Host_UnknownMessageReceived(object sender,
                                                 UnknownMessageReceivedEventArgs e)
 {
     Message        msg     = e.Message;
     MessageHeaders headers = msg.Headers;
 }
 static void OnUnknownMessage(object sender, UnknownMessageReceivedEventArgs e)
 {
     Console.WriteLine("Received an unexpected message");
     Console.WriteLine(e.Message.ToString());
 }
Exemple #17
0
 private void ServiceHost_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
 }
Exemple #18
0
 void InnerChannel_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     _log.Debug(e.Message);
 }
Exemple #19
0
 private static void SvcHost_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
 }
Exemple #20
0
 private static void service_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     Log.Default.Info(e.Message.Headers[0] + "ErrorServerUnknown");
 }
Exemple #21
0
 static void callServiceHost_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     Console.ForegroundColor = ConsoleColor.Red;
     Console.WriteLine(e.Message);
     Console.ResetColor();
 }
Exemple #22
0
 static void host_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     Console.WriteLine(e.Message);
 }
Exemple #23
0
 void m_host_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     System.Diagnostics.EventLog.WriteEntry(sSource, string.Format(Resources.NotificationEngineUnknownMessage, e.Message.ToString()), EventLogEntryType.Warning);
     SendMail(true, ConfigurationManager.AppSettings["MailFrom"], ConfigurationManager.AppSettings["MailTo"], ConfigurationManager.AppSettings["MailCC"],
              Resources.MessageSubject, string.Format(Resources.MessageBody, string.Format(Resources.NotificationEngineUnknownMessage, e.Message.ToString())));
 }
 private void HostOnUnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     _logger.Write(LogLevel.Error, sender.ToString() + ": " + e.Message);
 }
Exemple #25
0
 void serviceHost_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     this.EventLog.WriteEntry("UnknownMessageReceived!", EventLogEntryType.Error);
 }
Exemple #26
0
 private void host_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     Log.WarnFormat("UnknownMessageReceived: {0}", e.Message);
 }
Exemple #27
0
 private static void host_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     Debugger.Break();
 }
Exemple #28
0
 private void WorkflowServiceHostOnUnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs unknownMessageReceivedEventArgs)
 {
     OutputWriter.WriteLine("Unknown workflow service message received: {0}", unknownMessageReceivedEventArgs.Message);
 }
Exemple #29
0
 private void ServiceHostUnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     Common.Loger.Warn(string.Format("收到无法识别的消息。\r\n{0}", e.Message));
 }
Exemple #30
0
 static void host_UnknownMessageReceived(object sender, UnknownMessageReceivedEventArgs e)
 {
     Debug.WriteLine("Oops, I received a message that didn't correlate!");
     Debug.WriteLine(e.Message.ToString());
 }