public void Apply(DeviceUpdatedFromDeviceInfo e) { ////this.UserId = e.UserId; this.Type = e.Type; this.DeviceVersion = e.DeviceVersion; }
public UpdateDefinition <DeviceDb> Translate(DeviceUpdatedFromDeviceInfo @from) { return(Builders <DeviceDb> .Update .Set(g => g.Version, @from.Version) .Set(g => g.LastModifiedTimestamp, @from.Timestamp) .Set(g => g.LastModifiedByUserId, @from.UserId) .Set(g => g.Type, @from.Type) .Set(g => g.DeviceVersion, @from.DeviceVersion)); }
public void Update(DeviceUpdatedFromDeviceInfo message) { var updateDefinition = this.deviceUpdatedFromDeviceInfoTranslator.Translate(message); this.dataStore.FindOneAndUpdate(g => g.Id == message.AggregateId, updateDefinition); }
public UpdateDefinition <DeviceDb> Translate(DeviceUpdatedFromDeviceInfo @from, UpdateDefinition <DeviceDb> tr) { throw new System.NotImplementedException(); }