private void EnsureKeys(PersonData person) { person.Uuid = (person.Uuid != null) ? person.Uuid : IdUtil.GenerateUuid(); person.ShortKey = (person.ShortKey != null) ? person.ShortKey : IdUtil.GenerateShortKey(); }
public object BeforeSendRequest(ref Message request, IClientChannel channel) { request.Headers.Add(new RequestHeader(IdUtil.GenerateUuid())); return(null); }
private void EnsureKeys(AddressData address) { address.Uuid = (address.Uuid != null) ? address.Uuid : IdUtil.GenerateUuid(); address.ShortKey = (address.ShortKey != null) ? address.ShortKey : IdUtil.GenerateShortKey(); }
private void EnsureKeys(OrgFunctionData orgFunction) { orgFunction.Uuid = (orgFunction.Uuid != null) ? orgFunction.Uuid : IdUtil.GenerateUuid(); orgFunction.ShortKey = (orgFunction.ShortKey != null) ? orgFunction.ShortKey : IdUtil.GenerateShortKey(); }