public void Handle(SoftwareFactoryEvent @event) { string projectId = @event.GetValue("ProjectId"); if (!_actions.ContainsKey(projectId)) { _actions[projectId] = new List <SoftwareFactoryEvent>(); } _actions[projectId].Add(@event); }
public void Handle(SoftwareFactoryEvent @event) { var outputTargetId = @event.GetValue("OutputTargetId"); if (!_actions.ContainsKey(outputTargetId)) { _actions[outputTargetId] = new List <SoftwareFactoryEvent>(); } _actions[outputTargetId].Add(@event); }
private void UpdateFileOnHdd(string filename, string outputContent) { var se = new SoftwareFactoryEvent(SoftwareFactoryEvents.OverwriteFileCommand, new Dictionary <string, string> { { "FullFileName", filename }, { "Content", outputContent }, }); _softwareFactoryEventDispatcher.Publish(se); }