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