Hi everyone,
I have a problem. I wan to receive from Analytics event. I use MessageId:
MessageId.Server.NewEventIndication to filter message. But with this solution, I must receive all Event, then I filter to take Analytics Event. Now I only want to receive Analytics event. It means, Event Server will forward to my receiver when events are Analytics event, not all event. there are sample code, which use defined MessageId.
Can anyone help me?
Thank in advance
MessageId.Server.NewEventIndications will filter messages, however to number of event is relatively high. There is currently no functionality to filter the NewEventIndications.
As a workaround to avoid most of the network traffic you could develop a Event Server plugin that subscribe using NewEventIndications, and then let this Event Server plugin signal your program using a custom MessageId.
Hi Bo,
according to what you say, I must develop a plugin for Event Server if I want to define a custom MessageId. Can you explain for me the difference between SendMessage and transmitMessage? I still confuse to distinguish them. I researched some sample project. In Chat plugin, use transmitMessage. In AnalyticsEventTriggerViaLibrary, use SendMessage. Also in Chat sample, there is MessageId = “Chat.Line”. Currently I think, the sender will send message with MessageId = “Chat.Line”, the receiver will subcribe to receive message with MessageId = “Chat.LIne”. I don’t need to develop a plugin for Event Sever to process new MessageId. I don’t know what I think it is wrong or right?
Thank you,
Best regards
The TransmitMessage is used when communicating across different applications. SendMessage is intra-application communication. Different classes implement these.
You are right.
Hi Bo,
I am sorry about bother you. I want to ask a question. I haven’t clear about SendMessage. I ran sample: **AnalyticsEventTriggerViaLibrary.csproj .**I met a problem. If I log in by Basic user, I wouldn’t send Analytics Event to Event Server, not receive Alarm in Smart Client. In other word if I log in by window authentication, I receive Alarm in Smart Client.the sample function “SendMessage” is used. in this case I think It is communication between Application base on .NET lib and Event Server. is it intra-application communication?
Can you explain for me?
Thank you so much.
SendMessage is EnvironmentManager Class, so it is the MIP Environment.
-whereas-
VideoOS.Platform.Messaging.MessageCommunication Class Reference
Communication between EventServer and all other MIP Environments can be done via this class.
Each starting application or service will have one EndPoint ( Unique for each execution ), and a EndPointType.
The EventServer is defined as a EndPointType.Server and all other MIP Environments are in this context a EndPointType.Client.
Any MIP plug-in can get a list of all currently executing MIP Environments and store their EndPointFQID for communication purpose. For each EndPoint is is possible to get hold of the EndPointIdentityData class to identify the login user name for a given EndPoint. See the WhoAreOnlineRequest and WhoAreOnlineResponse MessageId’s for more on this.
Hi Bo,
Can you explain for me the difference between basic user and Window authentication when I run sample: AnalyticsEventTriggerViaLibrary.csproj?
Thank you very much!
Hi Bo,
When I run sample: AnalyticsEventTriggerViaLibrary.csproj with Xprotect enterprise, it runs normal. When I run with Xprotect corporate, it meets problem as above. I think in Xprotect corporate I need to configure additionly. Can you response my post, whose title is “configure Event Server from other computer”?