mirror of https://github.com/abpframework/abp.git
22 changed files with 171 additions and 61 deletions
@ -0,0 +1,23 @@ |
|||
using Volo.Abp.EventBus; |
|||
|
|||
namespace SharedModule |
|||
{ |
|||
/// <summary>
|
|||
/// Used to indicate that App2 has received a text message.
|
|||
/// </summary>
|
|||
[EventName("Test.App1TextReceived")] //Optional event name
|
|||
public class App1TextReceivedEventData |
|||
{ |
|||
public string ReceivedText { get; set; } |
|||
|
|||
public App1TextReceivedEventData() |
|||
{ |
|||
|
|||
} |
|||
|
|||
public App1TextReceivedEventData(string receivedText) |
|||
{ |
|||
ReceivedText = receivedText; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,23 @@ |
|||
using Volo.Abp.EventBus; |
|||
|
|||
namespace SharedModule |
|||
{ |
|||
/// <summary>
|
|||
/// Used to send a text message from App1 to App2.
|
|||
/// </summary>
|
|||
[EventName("Test.App1ToApp2Text")] //Optional event name
|
|||
public class App1ToApp2TextEventData |
|||
{ |
|||
public string TextMessage { get; set; } |
|||
|
|||
public App1ToApp2TextEventData() |
|||
{ |
|||
|
|||
} |
|||
|
|||
public App1ToApp2TextEventData(string textMessage) |
|||
{ |
|||
TextMessage = textMessage; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,23 @@ |
|||
using Volo.Abp.EventBus; |
|||
|
|||
namespace SharedModule |
|||
{ |
|||
/// <summary>
|
|||
/// Used to indicate that App2 has received a text message.
|
|||
/// </summary>
|
|||
[EventName("Test.App2TextReceived")] //Optional event name
|
|||
public class App2TextReceivedEventData |
|||
{ |
|||
public string ReceivedText { get; set; } |
|||
|
|||
public App2TextReceivedEventData() |
|||
{ |
|||
|
|||
} |
|||
|
|||
public App2TextReceivedEventData(string receivedText) |
|||
{ |
|||
ReceivedText = receivedText; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,23 @@ |
|||
using Volo.Abp.EventBus; |
|||
|
|||
namespace SharedModule |
|||
{ |
|||
/// <summary>
|
|||
/// Used to send a text message from App2 to App1.
|
|||
/// </summary>
|
|||
[EventName("Test.App2ToApp1Text")] //Optional event name
|
|||
public class App2ToApp1TextEventData |
|||
{ |
|||
public string TextMessage { get; set; } |
|||
|
|||
public App2ToApp1TextEventData() |
|||
{ |
|||
|
|||
} |
|||
|
|||
public App2ToApp1TextEventData(string textMessage) |
|||
{ |
|||
TextMessage = textMessage; |
|||
} |
|||
} |
|||
} |
|||
@ -1,7 +0,0 @@ |
|||
namespace SharedModule |
|||
{ |
|||
public class TextEventData |
|||
{ |
|||
public string TextMessage { get; set; } |
|||
} |
|||
} |
|||
@ -1,7 +0,0 @@ |
|||
namespace SharedModule |
|||
{ |
|||
public class TextReceivedEventData |
|||
{ |
|||
public string ReceivedText { get; set; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue