Пример #1
0
 public TestKitSilo()
 {
     GrainFactory          = new TestGrainFactory(Options);
     ServiceProvider       = new TestServiceProvider(Options);
     StorageManager        = new StorageManager(Options);
     TimerRegistry         = new TestTimerRegistry();
     ReminderRegistry      = new TestReminderRegistry();
     StreamProviderManager = new TestStreamProviderManager(Options);
     ServiceProvider.AddService <IKeyedServiceCollection <string, IStreamProvider> >(StreamProviderManager);
     _grainRuntime = new TestGrainRuntime(GrainFactory, TimerRegistry, ReminderRegistry, ServiceProvider, StorageManager);
     _grainCreator = new TestGrainCreator(_grainRuntime, ServiceProvider);
 }
Пример #2
0
        public TestKitSilo()
        {
            _grainFactory = new TestGrainFactory(Options);

            ServiceProvider = new TestServiceProvider(Options);

            _timerRegistry = new TestTimerRegistry();

            ReminderRegistry = new TestReminderRegistry();

            _streamProviderManager = new TestStreamProviderManager(Options);

            _grainRuntime = new TestGrainRuntime(_grainFactory, _timerRegistry, _streamProviderManager, ReminderRegistry, ServiceProvider);

            _grainCreator = new TestGrainCreator(_grainRuntime);
        }