Exemple #1
0
 /// <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()));
 }
Exemple #2
0
        /// <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);
        }
Exemple #3
0
 /// <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()));
 }
Exemple #4
0
 /// <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;
 }
Exemple #5
0
 /// <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());
 }
Exemple #6
0
 /// <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());
 }