예제 #1
0
		public AgentMetadata(Assembly agent)
		{
			_agent = agent;

			IsValid = _agent.ContainsAgent();

			if (IsValid)
			{
				DescriptiveName = _agent.GetAgentName();
				SystemName = _agent.GetAgentSystemName();

				Commands = new CommandMetadataCollection(_agent);
				Queries = new QueryMetadataCollection(_agent);
				ReadModels = new ReadModelMetadataCollection(_agent);
			}
		}
예제 #2
0
		public AgentMetadata(Assembly agent)
		{
			_agent = agent;

			IsValid = _agent.ContainsAgent();

			if (IsValid)
			{
				DescriptiveName = _agent.GetAgentName();
				SystemName = _agent.GetAgentSystemName();
				Description = _agent.GetAgentDescription();

				Commands = new CommandPartCollection(_agent, _agent.GetCommandNamespace());
				Queries = new QueryPartCollection(_agent, _agent.GetQueryNamespace());
				ReadModels = new ReadModelPartCollection(_agent, _agent.GetReadModelNamespace());
			}
		}