Example #1
0
 /// <summary>
 /// Zwraca AppLog wypełniony danymi
 /// </summary>
 private AppLog PrepareLog(AppLog.LogType logType, string format, object[] args)
 {
     return(new AppLog()
     {
         Type = logType.ToString(),
         Message = string.Format(format, args),
         Ip = NetworkService.GetContextIP(),
     });
 }
Example #2
0
 /// <summary>
 /// Wypełnia ContactMessage brakującymi danymi
 /// </summary>
 private void FillMessage(ContactMessage message)
 {
     message.IP      = NetworkService.GetContextIP();
     message.AddDate = DateTime.Now;
 }