Exemplo n.º 1
0
 public BaseManager(string endpointUrl, string primaryKey)
 {
     telemetria = new Trace();
     try
     {
         if (endpointUrl.Equals(string.Empty) || primaryKey.Equals(string.Empty))
         {
             Inicialization();
             context = new KindAdsV2DataAccess(this.endpointUrl, this.primaryKey);
         }
         else
         {
             context = new KindAdsV2DataAccess(endpointUrl, primaryKey);
         }
     }
     catch (Exception e)
     {
         var messageException = telemetria.MakeMessageException(e, System.Reflection.MethodBase.GetCurrentMethod().Name);
         telemetria.Critical(messageException);
     }
 }
Exemplo n.º 2
0
 public BaseManager()
 {
     telemetria = new Trace();
     Inicialization();
     context = new KindAdsV2DataAccess(endpointUrl, primaryKey);
 }