示例#1
0
 public static void ProcessQueue([QueueTrigger("freesitesiislogsqueue")] BlobInformation blobInfo,
                                 [Blob("freesitesiislogs/{BlobName}", FileAccess.Read)] Stream input)
 {
     try
     {
         var siteUsageTime = GetSiteUsageTime(blobInfo.BlobName, input);
         using (var context = new TryItNowAnalyticsContext())
         {
             context.SiteUsageTimes.AddOrUpdate(e => e.UniqueId, siteUsageTime);
             context.SaveChanges();
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
 public ApplicationLogAnalyzer()
 {
     this._tryItNowAnalyticsContext = new TryItNowAnalyticsContext();
     this._storageHelper = new StorageHelper("wawsapplogblobtrywebsites");
 }
 public IISLogAnalyzer()
 {
     this._tryItNowAnalyticsContext = new TryItNowAnalyticsContext();
     this._storageHelper = new StorageHelper("wawssitelogblobtrywebsites");
 }