public Task Tell(EventProccessBufferWrap eventWrap)
        {
            object          id = eventWrap.Event.GetStateId();
            IEventProcessor eventProcessor;

            if (id is Guid _guid)
            {
                eventProcessor = client.GetGrain <IEventProcessor>(primaryKey: _guid, grainClassNamePrefix: _grainClassName);
            }
            else if (id is string _strId)
            {
                eventProcessor = client.GetGrain <IEventProcessor>(primaryKey: _strId, grainClassNamePrefix: _grainClassName);
            }
            else
            {
                eventProcessor = client.GetGrain <IEventProcessor>(primaryKey: (long)id, grainClassNamePrefix: _grainClassName);
            }
            return(eventProcessor.Tell(eventWrap));
        }
Beispiel #2
0
 public Task Tell(EventProccessBufferWrap eventWrap)
 {
     return(this._eventBufferBlock.SendAsync(eventWrap));
 }