public override string Log(Error error) { var entity = new ErrorEntity(error); long pos = _entityList.Add(entity); return(pos.ToString(CultureInfo.InvariantCulture)); }
public override string Log(Error error) { var entity = new ErrorEntity(error); var context = CloudStorageAccount.Parse(connectionString) .CreateCloudTableClient() .GetTableServiceContext(); context.AddObject(TableName, entity); context.SaveChangesWithRetries(); return entity.RowKey; }
public override string Log(Error error) { var entity = new ErrorEntity(error); long pos = _entityList.Add(entity); return pos.ToString(CultureInfo.InvariantCulture); }