private ActorDebugUpdateMessage GetLoadToSend(object message, MessageNature messageNature, string extraInfo = "") { var load = new ActorDebugUpdateMessage( Context.System.Name , Sender?.Path?.ToStringWithAddress() , Sender?.Path?.ToStringWithUid() , Self.Path.ToStringWithAddress() , Self.Path.ToStringWithUid() , message.GetType().Name , JsonConvert.SerializeObject(message) , message.GetType().FullName , extraInfo , messageNature); return(load); }
public ActorDebugUpdateMessage(string actorSystemInformation, string sourceActor, string sourceDescription, string destinationActor, string destinationDescription, string messageType, object message, string messageFullType, object extraInformation, MessageNature messageNature) { SourceActor = sourceActor; SourceDescription = sourceDescription; DestinationActor = destinationActor; DestinationDescription = destinationDescription; MessageType = messageType; Message = message; MessageFullType = messageFullType; ExtraInformation = extraInformation; MessageNature = Enum.GetName(typeof(MessageNature), messageNature); ActorSystemInformation = actorSystemInformation; ReceivedOn = DateTime.UtcNow; }