public void Update(InvokationResult ir) { if (ir.IsError()) { return; } foreach (CloudObject cobo in ir.Operation.CollectedObjects) { CloudObject exists = this.FirstOrDefault(item => item.Source.Equals(cobo.Source)); if (exists == null) { Add(cobo); } } }
public ProgressMessage(InvokationResult ir) { this.time = ir.Time; this.operation = ir.Operation.Name; this.service = ir.Operation.ServiceName; this.regionSystemName = ir.Operation.Region.SystemName; this.regionDisplayName = ir.Operation.Region.DisplayName; if (ir.IsError()) { this.result = ir.Ex.Message; this.imageIndex = 2; } else { this.result = ir.ResultText(); this.imageIndex = 0; } }