internal SessionStateProviderBaseContentReaderWriter(string path, SessionStateProviderBase provider) { if (string.IsNullOrEmpty(path)) { throw PSTraceSource.NewArgumentException("path"); } if (provider == null) { throw PSTraceSource.NewArgumentNullException("provider"); } this.path = path; this.provider = provider; }
internal SessionStateProviderBaseContentReaderWriter(string path, SessionStateProviderBase provider) { if (string.IsNullOrEmpty(path)) { throw PSTraceSource.NewArgumentException("path"); } if (provider == null) { throw PSTraceSource.NewArgumentNullException("provider"); } this.path = path; this.provider = provider; }
/// <summary> /// Constructs a content reader/writer for the specified provider using the specified /// path to read or write the content. /// </summary> /// <param name="path"> /// The path to the session state item which the content will be read or written. /// </param> /// <param name="provider"> /// The SessionStateProviderBase derived provider that the content will be read or written /// from/to. /// </param> /// <exception cref="ArgumentException"> /// if <paramref name="path"/> is null or empty. /// </exception> /// <exception cref="ArgumentNullException"> /// If <paramref name="provider"/> is null. /// </exception> internal SessionStateProviderBaseContentReaderWriter(string path, SessionStateProviderBase provider) { if (string.IsNullOrEmpty(path)) { throw PSTraceSource.NewArgumentException(nameof(path)); } if (provider is null) { throw PSTraceSource.NewArgumentNullException(nameof(provider)); } _path = path; _provider = provider; }
internal SessionStateProviderBaseContentReaderWriter( string path, SessionStateProviderBase provider) { using (SessionStateProviderBaseContentReaderWriter.tracer.TraceConstructor((object)this)) { if (string.IsNullOrEmpty(path)) { throw SessionStateProviderBaseContentReaderWriter.tracer.NewArgumentException(nameof(path)); } if (provider == null) { throw SessionStateProviderBaseContentReaderWriter.tracer.NewArgumentNullException(nameof(provider)); } this.path = path; this.provider = provider; } }
internal SessionStateContentReader(SessionStateProviderBase provider, Path path) { _provider = provider; _path = path; }