Ejemplo n.º 1
0
 public Session(FileSessionService service)
 {
     this._service = service;
     lock (service._syncRoot)
     {
         this.IsOpened = service._canAdd;
         if (this.IsOpened)
         {
             service._sessions.Add(this);
         }
     }
 }
Ejemplo n.º 2
0
 public JsonService(FileSessionService sessionService, JsonSerializerSettings settings, Encoding encoding)
 {
     this._sessionService = sessionService;
     this._settings       = settings;
     this._encoding       = encoding;
 }