public void Start() { //hack until we can fix the types filtering in default server if (SystemMessageTestContext == null || string.IsNullOrEmpty(SystemMessageTestContext.MessageId)) { return; } if (Configure.EndpointName != "Particular.ServiceControl") { return; } // Transport message has no headers for Processing endpoint and the ReplyToAddress is set to null var transportMessage = new TransportMessage(); transportMessage.Headers[Headers.ProcessingEndpoint] = "ServerEndpoint"; transportMessage.Headers[Headers.MessageId] = SystemMessageTestContext.MessageId; transportMessage.Headers[Headers.ConversationId] = "a59395ee-ec80-41a2-a728-a3df012fc707"; transportMessage.Headers["$.diagnostics.hostid"] = "bdd4b0510bff5a6d07e91baa7e16a804"; transportMessage.Headers["$.diagnostics.hostdisplayname"] = "SELENE"; if (!string.IsNullOrEmpty(SystemMessageTestContext.EnclosedMessageType)) { transportMessage.Headers[Headers.EnclosedMessageTypes] = SystemMessageTestContext.EnclosedMessageType; } if (SystemMessageTestContext.IncludeControlMessageHeader) { transportMessage.Headers[Headers.ControlMessageHeader] = SystemMessageTestContext.ControlMessageHeaderValue != null && (bool)SystemMessageTestContext.ControlMessageHeaderValue ? SystemMessageTestContext.ControlMessageHeaderValue.ToString() : null; } transportMessage.ReplyToAddress = null; SendMessages.Send(transportMessage, Address.Parse("audit")); }
public void Start() { // Transport message has no headers for Processing endpoint and the ReplyToAddress is set to null var transportMessage = new TransportMessage(); transportMessage.Headers[Headers.ProcessingEndpoint] = "ServerEndpoint"; transportMessage.Headers[Headers.MessageId] = SystemMessageTestContext.MessageId; transportMessage.Headers[Headers.ConversationId] = "a59395ee-ec80-41a2-a728-a3df012fc707"; transportMessage.Headers["$.diagnostics.hostid"] = "bdd4b0510bff5a6d07e91baa7e16a804"; transportMessage.Headers["$.diagnostics.hostdisplayname"] = "SELENE"; transportMessage.Headers["NServiceBus.ExceptionInfo.ExceptionType"] = "2014-11-11 02:26:57:767462 Z"; transportMessage.Headers["NServiceBus.ExceptionInfo.Message"] = "An error occurred while attempting to extract logical messages from transport message NServiceBus.TransportMessage"; transportMessage.Headers["NServiceBus.ExceptionInfo.InnerExceptionType"] = "System.Exception"; transportMessage.Headers["NServiceBus.ExceptionInfo.HelpLink"] = String.Empty; transportMessage.Headers["NServiceBus.ExceptionInfo.Source"] = "NServiceBus.Core"; transportMessage.Headers["NServiceBus.ExceptionInfo.StackTrace"] = String.Empty; transportMessage.Headers["NServiceBus.FailedQ"] = "SomeEndpoint@SELENE"; transportMessage.Headers["NServiceBus.TimeOfFailure"] = "2014-11-11 02:26:58:000462 Z"; transportMessage.Headers["NServiceBus.TimeSent"] = "2014-11-11 02:26:01:174786 Z"; if (!string.IsNullOrEmpty(SystemMessageTestContext.EnclosedMessageType)) { transportMessage.Headers[Headers.EnclosedMessageTypes] = SystemMessageTestContext.EnclosedMessageType; } if (SystemMessageTestContext.IncludeControlMessageHeader) { transportMessage.Headers[Headers.ControlMessageHeader] = SystemMessageTestContext.ControlMessageHeaderValue != null && (bool)SystemMessageTestContext.ControlMessageHeaderValue ? SystemMessageTestContext.ControlMessageHeaderValue.ToString() : null; } SendMessages.Send(transportMessage, new SendOptions(Address.Parse("error"))); }
public void Start() { // Transport message has no headers for Processing endpoint and the ReplyToAddress is set to null var transportMessage = new TransportMessage(); if (MyContext.IncludeProcessingEndpointHeader) { transportMessage.Headers[Headers.ProcessingEndpoint] = "SomeEndpoint"; } transportMessage.Headers[Headers.MessageId] = MyContext.MessageId; transportMessage.Headers[Headers.ConversationId] = "a59395ee-ec80-41a2-a728-a3df012fc707"; transportMessage.Headers["$.diagnostics.hostid"] = "bdd4b0510bff5a6d07e91baa7e16a804"; transportMessage.Headers["$.diagnostics.hostdisplayname"] = "SELENE"; transportMessage.Headers["NServiceBus.ExceptionInfo.ExceptionType"] = "2014-11-11 02:26:57:767462 Z"; transportMessage.Headers["NServiceBus.ExceptionInfo.Message"] = "An error occurred while attempting to extract logical messages from transport message NServiceBus.TransportMessage"; transportMessage.Headers["NServiceBus.ExceptionInfo.InnerExceptionType"] = "System.Exception"; transportMessage.Headers["NServiceBus.ExceptionInfo.HelpLink"] = String.Empty; transportMessage.Headers["NServiceBus.ExceptionInfo.Source"] = "NServiceBus.Core"; transportMessage.Headers["NServiceBus.ExceptionInfo.StackTrace"] = String.Empty; transportMessage.Headers["NServiceBus.FailedQ"] = "SomeEndpoint@SELENE"; transportMessage.Headers["NServiceBus.TimeOfFailure"] = "2014-11-11 02:26:58:000462 Z"; transportMessage.Headers["NServiceBus.TimeSent"] = "2014-11-11 02:26:01:174786 Z"; transportMessage.Headers[Headers.EnclosedMessageTypes] = "SendOnlyError.SendSomeCommand, TestSendOnlyError, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"; SendMessages.Send(transportMessage, new SendOptions(Address.Parse("error"))); }
public void Start() { var transportMessage = new TransportMessage(); transportMessage.Headers[Headers.MessageId] = MyContext.MessageId; transportMessage.Headers[Headers.ProcessingEndpoint] = Settings.EndpointName(); SendMessages.Send(transportMessage, new SendOptions(Address.Parse("audit"))); }
public void Start() { //hack until we can fix the types filtering in default server if (MyContext == null || string.IsNullOrEmpty(MyContext.MessageId)) { return; } if (Configure.EndpointName != "Particular.ServiceControl") { return; } var transportMessage = new TransportMessage(); transportMessage.Headers[Headers.MessageId] = MyContext.MessageId; transportMessage.Headers[Headers.ProcessingEndpoint] = Configure.EndpointName; SendMessages.Send(transportMessage, Address.Parse("audit")); }
public void Start() { // Transport message has no headers for Processing endpoint and the ReplyToAddress is set to null var transportMessage = new TransportMessage(); transportMessage.Headers[Headers.ProcessingEndpoint] = "ServerEndpoint"; transportMessage.Headers[Headers.MessageId] = SystemMessageTestContext.MessageId; transportMessage.Headers[Headers.ConversationId] = "a59395ee-ec80-41a2-a728-a3df012fc707"; transportMessage.Headers["$.diagnostics.hostid"] = "bdd4b0510bff5a6d07e91baa7e16a804"; transportMessage.Headers["$.diagnostics.hostdisplayname"] = "SELENE"; if (!string.IsNullOrEmpty(SystemMessageTestContext.EnclosedMessageType)) { transportMessage.Headers[Headers.EnclosedMessageTypes] = SystemMessageTestContext.EnclosedMessageType; } if (SystemMessageTestContext.IncludeControlMessageHeader) { transportMessage.Headers[Headers.ControlMessageHeader] = SystemMessageTestContext.ControlMessageHeaderValue != null && (bool)SystemMessageTestContext.ControlMessageHeaderValue ? SystemMessageTestContext.ControlMessageHeaderValue.ToString() : null; } SendMessages.Send(transportMessage, new SendOptions(Address.Parse("audit"))); Bus.SendLocal(new DoQueryAllowed()); }