Example #1
0
 public StorEvilJob(
     IStoryProvider storyProvider,
     IStoryHandler handler)
 {
     StoryProvider = storyProvider;
     Handler = handler;
 }
Example #2
0
        public StorEvilJob(
            IStoryProvider storyProvider,
            IStoryHandler handler)

        {
            StoryProvider = storyProvider;
            Handler       = handler;
        }
Example #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);
        }
Example #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);
        }
        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);
        }
Example #7
0
 public StorEvilJob(IStoryProvider storyProvider, IStoryHandler handler, ISessionContext sessionContext)
 {
     StoryProvider = storyProvider;
     Handler = handler;
     SessionContext = sessionContext;
 }
 public LocalHandler(IStoryHandler storyHandler)
 {
     _storyHandler = storyHandler;
 }
Example #9
0
 public LocalHandler(IStoryHandler storyHandler)
 {
     _storyHandler = storyHandler;
 }
Example #10
0
 public void AddHandler(IStoryHandler storyHandler)
 {
     this.storyHandlers.Add(storyHandler);
 }
Example #11
0
 public StorEvilJob(IStoryProvider storyProvider, IStoryHandler handler, ISessionContext sessionContext)
 {
     StoryProvider  = storyProvider;
     Handler        = handler;
     SessionContext = sessionContext;
 }
Example #12
0
 public LocalStoryHandler(IStoryHandler handler)
 {
     _handler = handler;
 }
Example #13
0
 public void AddHandler(IStoryHandler storyHandler)
 {
     this.storyHandlers.Add(storyHandler);
 }