コード例 #1
0
        public void Handle(SoftwareFactoryEvent @event)
        {
            string projectId = @event.GetValue("ProjectId");

            if (!_actions.ContainsKey(projectId))
            {
                _actions[projectId] = new List <SoftwareFactoryEvent>();
            }
            _actions[projectId].Add(@event);
        }
コード例 #2
0
        public void Handle(SoftwareFactoryEvent @event)
        {
            var outputTargetId = @event.GetValue("OutputTargetId");

            if (!_actions.ContainsKey(outputTargetId))
            {
                _actions[outputTargetId] = new List <SoftwareFactoryEvent>();
            }
            _actions[outputTargetId].Add(@event);
        }
コード例 #3
0
        private void UpdateFileOnHdd(string filename, string outputContent)
        {
            var se = new SoftwareFactoryEvent(SoftwareFactoryEvents.OverwriteFileCommand, new Dictionary <string, string>
            {
                { "FullFileName", filename },
                { "Content", outputContent },
            });

            _softwareFactoryEventDispatcher.Publish(se);
        }