private void CreateTitle() { Title = ((LocalizedDisplayNameAttribute)Dto.GetType().GetCustomAttributes(typeof(LocalizedDisplayNameAttribute), false).SingleOrDefault()).DisplayName; }
public void MakeStatus(string status, Dto obj) { Console.WriteLine("MakeStatus"); DateTimeOffset time = new DateTimeOffset(DateTime.Now); string strTime = string.Format("{0:yyyy-MM-ddTHH:mm:sszzzZ}", time); _statuses.Enqueue(string.Format("Time : {0} --- INVOKE : {1} --- TYPE : {2}", strTime, status, obj.GetType().ToString())); }