/// <summary> /// Create a transient EAnp event having the type specified. The /// freshness time is set to the WM freshness time. /// </summary> public AnpMsg MakeTransientEAnpEvent(EAnpEvt type) { return(MakeEAnpEvent(type, KDate.DateTimeToKDate(DateTime.Now), Cd.UserInfo.LocalUser.UserID, Wm.Cd.UpdateFreshnessTime())); }
/// <summary> /// Create an EAnp event having the parameters specified. /// </summary> private AnpMsg MakeEAnpEvent(EAnpEvt type, UInt64 date, UInt32 userID, UInt64 freshness) { AnpMsg m = new AnpMsg(); m.Minor = 1; m.Type = (UInt32)type; m.AddUInt64(InternalID); m.AddUInt64(date); m.AddUInt32(userID); m.AddUInt64(freshness); m.AddBin(Wm.MakeUuid()); return(m); }
/// <summary> /// Create a permanent EAnp event having the type, date and user /// specified. The freshness time is set to the current KCD freshness /// time. /// </summary> public AnpMsg MakePermEAnpEvent(EAnpEvt type, UInt64 date, UInt32 userID) { return(MakeEAnpEvent(type, date, userID, GetKcdFreshnessTime())); }
/// <summary> /// Create an EAnp event having the parameters specified. /// </summary> private AnpMsg MakeEAnpEvent(EAnpEvt type, UInt64 date, UInt32 userID, UInt64 freshness) { AnpMsg m = new AnpMsg(); m.Minor = 1; m.Type = (UInt32)type; m.AddUInt64(InternalID); m.AddUInt64(date); m.AddUInt32(userID); m.AddUInt64(freshness); m.AddBin(Wm.MakeUuid()); return m; }
/// <summary> /// Create a transient EAnp event having the type specified. The /// freshness time is set to the WM freshness time. /// </summary> public AnpMsg MakeTransientEAnpEvent(EAnpEvt type) { return MakeEAnpEvent(type, KDate.DateTimeToKDate(DateTime.Now), Cd.UserInfo.LocalUser.UserID, Wm.Cd.UpdateFreshnessTime()); }
/// <summary> /// Create a permanent EAnp event having the type, date and user /// specified. The freshness time is set to the current KCD freshness /// time. /// </summary> public AnpMsg MakePermEAnpEvent(EAnpEvt type, UInt64 date, UInt32 userID) { return MakeEAnpEvent(type, date, userID, GetKcdFreshnessTime()); }