Beispiel #1
0
            static void RemoteEventHandler(object sender, FbRemoteEventCountsEventArgs args)
            {
                Debug.WriteLine($"{DateTime.Now.ToString("HH:mm:ss.fff")} Esemény észlelve: {args.Name} ");

                // megjegyzem, hogy az adott típusú eventet fel kell dolgozni
                s_eventsFired[args.Name] = DateTime.Now;
            }
Beispiel #2
0
    private void OnRemoteEventCounts(string name, int count)
    {
        var args = new FbRemoteEventCountsEventArgs(name, count);

        _synchronizationContext.Post(_ =>
        {
            RemoteEventCounts?.Invoke(this, args);
        }, null);
    }
Beispiel #3
0
        private void OnDbEvent(object sender, FbRemoteEventCountsEventArgs eventArgs)
        {
            Logger.LogInformation($"New event: {eventArgs.Name}");

            var model = GetModelOrNull(eventArgs.Name);

            if (model == null)
            {
                Logger.LogWarning($"Can't find model for event: {eventArgs.Name}");
                return;
            }

            var models = _tempDbReader.ReadModels <TModel>();
            var args   = new TableChangedEventArgs <TModel>()
            {
                TotalChangedModels = models
            };

            TableChanged?.Invoke(this, args);
        }
Beispiel #4
0
 private void Revent_RemoteEventCounts(object sender, FbRemoteEventCountsEventArgs e)
 {
     fctSQL.AppendText($@"{StaticFunctionsClass.DateTimeNowStr()} Event occured ->{e.Name}->{e.Counts}");
 }
 private void OnRemoteEvent(object sender, FbRemoteEventCountsEventArgs args)
 {
     EventHandler?.Invoke(sender,
                          new RemoteEventEventArgs(args.Name, args.Counts));
 }