public BatchedWebServiceTarget(IBatchWebService WebService = null)
 {
     this.logEventSerializer = MessagePackSerializer.Get<Dictionary<String,String>>();
     this.logBatchSerializer = BatchedWebService.PayLoadSerializer.getSerializer();
     if (WebService == null) {
         this.webService = new BatchWebService();
     }else {
         this.webService = WebService;
     }
     this.Layout = new DictionaryLayout();
     this.Layout.Attributes.Add(new DictionaryLayoutAttribute("time", "${longdate}"));
     this.Layout.Attributes.Add(new DictionaryLayoutAttribute("level", "${level:upperCase=True}"));
     this.Layout.Attributes.Add(new DictionaryLayoutAttribute("message", "${message}"));
     this.Layout.Attributes.Add(new DictionaryLayoutAttribute("exception", "${exception:format=ToString,Message,StackTrace}"));
 }
 public BatchedWebServiceTarget(IBatchWebService WebService = null)
 {
     this.logEventSerializer = MessagePackSerializer.Get <Dictionary <String, String> >();
     this.logBatchSerializer = BatchedWebService.PayLoadSerializer.getSerializer();
     if (WebService == null)
     {
         this.webService = new BatchWebService();
     }
     else
     {
         this.webService = WebService;
     }
     this.Layout = new DictionaryLayout();
     this.Layout.Attributes.Add(new DictionaryLayoutAttribute("time", "${longdate}"));
     this.Layout.Attributes.Add(new DictionaryLayoutAttribute("level", "${level:upperCase=True}"));
     this.Layout.Attributes.Add(new DictionaryLayoutAttribute("message", "${message}"));
     this.Layout.Attributes.Add(new DictionaryLayoutAttribute("exception", "${exception:format=ToString,Message,StackTrace}"));
 }