Esempio n. 1
0
 public StorEvilJob(
     IStoryProvider storyProvider,
     IStoryHandler handler)
 {
     StoryProvider = storyProvider;
     Handler = handler;
 }
Esempio n. 2
0
        public StorEvilJob(
            IStoryProvider storyProvider,
            IStoryHandler handler)

        {
            StoryProvider = storyProvider;
            Handler       = handler;
        }
Esempio n. 3
0
        // Usage: new Handler("myhandler").Compose(new Handler("myhandler2"))
        public static IStoryHandler Compose(this IStoryHandler storyHandler, IStoryHandler storyHandler2)
        {
            if (storyHandler is CompositeHandler)
            {
                ((CompositeHandler)storyHandler).AddHandler(storyHandler2);
                return(storyHandler);
            }

            return(new CompositeHandler(null, storyHandler, storyHandler2));
        }
        public RemoteScenarioExecutor(IRemoteTaskServer server, AssemblyRegistry assemblyRegistry)
        {
            _server = server;
            _assemblyRegistry = assemblyRegistry;
            _sessionContext = new SessionContext(assemblyRegistry);

            _eventBus = new EventBus();
            _listener = new ResharperResultListener(_server);

            _resolver = new MostRecentlyUsedContext();
            _runner = BuildInPlaceRunner(_resolver);

            _eventBus.Register(_resolver);
            _eventBus.Register(_listener);
        }
Esempio n. 5
0
        public RemoteScenarioExecutor(IRemoteTaskServer server, AssemblyRegistry assemblyRegistry)
        {
            _server = server;
            _assemblyRegistry = assemblyRegistry;
            _sessionContext = new SessionContext(assemblyRegistry);

            _eventBus = new EventBus();

            new EventBusAutoRegistrar(_assemblyRegistry).InstallTo(_eventBus);
            _listener = new ResharperResultListener(_server);
          
            _resolver = new MostRecentlyUsedContext();
            _runner = BuildInPlaceRunner(_resolver);

            _eventBus.Register(_resolver);
            _eventBus.Register(_listener);

            ParameterConverter.AddCustomConverters(_assemblyRegistry);
        }
Esempio n. 6
0
        public RemoteScenarioExecutor(IRemoteTaskServer server, AssemblyRegistry assemblyRegistry)
        {
            _server = server;
            _assemblyRegistry = assemblyRegistry;
            _sessionContext = new SessionContext(assemblyRegistry);

            _eventBus = new EventBus();

            new EventBusAutoRegistrar(_assemblyRegistry).InstallTo(_eventBus);
            _listener = new ResharperResultListener(_server);

            _resolver = new MostRecentlyUsedContext();
            _runner = BuildInPlaceRunner(_resolver);

            _eventBus.Register(_resolver);
            _eventBus.Register(_listener);

            ParameterConverter.AddCustomConverters(_assemblyRegistry);
        }
Esempio n. 7
0
 public StorEvilJob(IStoryProvider storyProvider, IStoryHandler handler, ISessionContext sessionContext)
 {
     StoryProvider = storyProvider;
     Handler = handler;
     SessionContext = sessionContext;
 }
 public LocalHandler(IStoryHandler storyHandler)
 {
     _storyHandler = storyHandler;
 }
Esempio n. 9
0
 public LocalHandler(IStoryHandler storyHandler)
 {
     _storyHandler = storyHandler;
 }
Esempio n. 10
0
 public void AddHandler(IStoryHandler storyHandler)
 {
     this.storyHandlers.Add(storyHandler);
 }
Esempio n. 11
0
 public StorEvilJob(IStoryProvider storyProvider, IStoryHandler handler, ISessionContext sessionContext)
 {
     StoryProvider  = storyProvider;
     Handler        = handler;
     SessionContext = sessionContext;
 }
Esempio n. 12
0
 public LocalStoryHandler(IStoryHandler handler)
 {
     _handler = handler;
 }
Esempio n. 13
0
 public void AddHandler(IStoryHandler storyHandler)
 {
     this.storyHandlers.Add(storyHandler);
 }