Пример #1
0
 public Session(FileSessionService service)
 {
     this._service = service;
     lock (service._syncRoot)
     {
         this.IsOpened = service._canAdd;
         if (this.IsOpened)
         {
             service._sessions.Add(this);
         }
     }
 }
Пример #2
0
 public JsonService(FileSessionService sessionService, JsonSerializerSettings settings, Encoding encoding)
 {
     this._sessionService = sessionService;
     this._settings       = settings;
     this._encoding       = encoding;
 }