如何在C#项目中进行会话记录 [英] How to do session recording in project of C#

查看:123
本文介绍了如何在C#项目中进行会话记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个名为分布式学习系统"的项目.
在此项目中,模块之一是会话记录.所以我需要在c#中适合于此目的的代码.

I am making a project named ''distributed learning system''.
In this project, one of the modules is Session recording. so i need code suitable for this purpose in c#.

推荐答案

好,所以您需要能够记录会话.好吧,这里的主要问题是什么构成会话以及您要应用什么粒度?从粒度上讲,我的意思是您只想捕获高级操作吗?您是否需要较低级别的操作?提示-如果要记录会话,那么您确实需要考虑使用基于Command的设计模式,并在其中存储用于重新创建会话的操作,作为一系列您要遍历并执行的命令.

这是应用程序设计的基本行为,因此您不希望在以后进行选择.
Okay, so you require the ability to record a session. Well, the big question here is what constitutes a session and what granularity do you want to apply? By granularity, I mean do you only want to be capturing high level actions? Do you want lower level actions? As a hint - if you are recording a session, then you really need to consider using a Command based design pattern with you storing the actions to recreate the session as a series of commands that you just iterate over and execute.

This is fundamental behaviour for your application design, so you do not want to leave the choice until a later stage.


这篇关于如何在C#项目中进行会话记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆