/// <summary> /// Updates an IISMachines LastUsed property /// </summary> /// <param name="updatedTime">DateTime to update LastUsed Property to</param> /// <param name="callback">Function to return to</param> /// <param name="machine">IISMachine to Update LastUsed property</param> /// <returns>An AsynResult</returns> public IAsyncResult UpdateMachineLastUsedProperty(DateTime updatedTime, AsyncCallback callback, WebMachine machine) { machine.LastUsed = updatedTime; this.IISMachineEntities.UpdateObject(machine); return this.IISMachineEntities.BeginSaveChanges(callback, machine); }
/// <summary> /// Updates an IISMachines LastUsed property /// </summary> /// <param name="updatedTime">DateTime to update LastUsed Property to</param> /// <param name="callback">Function to return to</param> /// <param name="machine">IISMachine to Update LastUsed property</param> /// <returns>An AsynResult</returns> public IAsyncResult UpdateMachineLastUsedProperty(DateTime updatedTime, AsyncCallback callback, WebMachine machine) { machine.LastUsed = updatedTime; return new FakeAsyncResult(callback, machine); }