예제 #1
0
파일: EventHub.cs 프로젝트: sekeys/Phyah
 public void Subscribe(EventDescriptor description)
 {
     Schedule.Schedule(() => { GlobalVariable.EventStore.Store(description.EventName, description); }, TimeSpan.Zero);
 }
예제 #2
0
파일: EventHub.cs 프로젝트: sekeys/Phyah
 public Task UnsubscribeAsync(EventDescriptor description)
 {
     return(Schedule.ScheduleAsync(() => { GlobalVariable.EventStore.Unstore(description.EventName, description); }, TimeSpan.Zero));
 }
예제 #3
0
파일: EventHub.cs 프로젝트: sekeys/Phyah
            public void Run()
            {
                var descriptor = EventDescriptor.Descriptions(Name, Handler);

                GlobalVariable.EventStore.Unstore(Name, descriptor);
            }