public static void ConfigureEventProcessing(IServiceProvider serviceProvider)
        {
            IContractInfoRegistry          registry  = serviceProvider.GetRequiredService <IContractInfoRegistry>();
            IContractEventWatcherProcessor processor = serviceProvider.GetRequiredService <IContractEventWatcherProcessor>();

            IContractInfo contractInfo = registry.FindContractInfo(WellKnownContracts.GameManager);

            processor.RegisterEventHandler <StartGameRoundEventHandler, StartGameRoundEvent, StartGameRoundEventOutput>(contractInfo);
            processor.RegisterEventHandler <NoMoreBetsEventHandler, NoMoreBetsEvent, NoMoreBetsEventOutput>(contractInfo);
            processor.RegisterEventHandler <EndGameRoundEventHandler, EndGameRoundEvent, EndGameRoundEventOutput>(contractInfo);
        }
Exemple #2
0
        public static void ConfigureEventProcessing(IServiceProvider serviceProvider)
        {
            // TODO: Implement any event handlers we need
#if FALSE
            IContractInfoRegistry          registry  = serviceProvider.GetRequiredService <IContractInfoRegistry>();
            IContractEventWatcherProcessor processor = serviceProvider.GetRequiredService <IContractEventWatcherProcessor>();

            IContractInfo contractInfo = registry.FindContractInfo(WellKnownContracts.GameManager);

            processor.RegisterEventHandler <CreateProgressivePotEventHandler, CreateProgressivePotEvent, CreateProgressivePotEventOutput>(contractInfo);
#endif
        }