Пример #1
0
        /// <summary>
        /// Gets context snapshot
        /// </summary>
        /// <returns>context snapshot</returns>
        public override ContextSnapshot GetSnapshot()
        {
            var snapshotInitData = new UserContextSnapshotInitData()
            {
                UTCTime         = this.GetCurrentTimeUTC(),
                LocalTimeOffset = this.GetLocalTimeOffset(),
                UICulture       = this.GetCurrentUICulture(),
                UserData        = this.currentUserData.Value,
            };

            return(new ContextSnapshot(snapshotInitData));
        }
 /// <summary>
 /// Creates new instance of <see cref="UserContextSnapshot"/>
 /// </summary>
 /// <param name="initData">initialization data</param>
 public UserContextSnapshot(UserContextSnapshotInitData initData) : base(initData)
 {
     this.UserData = initData.UserData;
 }
		/// <summary>
		/// Creates new instance of <see cref="UserContextSnapshot"/>
		/// </summary>
		/// <param name="initData">initialization data</param>
		public UserContextSnapshot(UserContextSnapshotInitData initData) : base(initData)
		{
			this.UserData = initData.UserData;
		}