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