예제 #1
0
 private void EnsureKeys(PersonData person)
 {
     person.Uuid     = (person.Uuid != null) ? person.Uuid : IdUtil.GenerateUuid();
     person.ShortKey = (person.ShortKey != null) ? person.ShortKey : IdUtil.GenerateShortKey();
 }
예제 #2
0
        public object BeforeSendRequest(ref Message request, IClientChannel channel)
        {
            request.Headers.Add(new RequestHeader(IdUtil.GenerateUuid()));

            return(null);
        }
예제 #3
0
 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();
 }