I am using C# to create a document data.
public class Document{
public string CreatorUsername {get;set;}
public string CreatorDepartment {get;set;}
public string DataFromServiceExternalService1 {get;set;}
public string DataFromServiceExternalService2 {get;set;}
public string DataFromServiceExternalService3 {get;set;}
public string DataFromWebConfig {get;set;}
}
The document data properties are comes from different services, applciation username, web config like this.
I need to wait downlaod Service1, Service2, Service2, Web.config results. After all data come I will create document.
I am new at design patterns and I wonder if I apply a design pattern about this problem. For example decorator patten or else.
Aucun commentaire:
Enregistrer un commentaire