예제 #1
0
 internal InternalDeserializer(XmlReader reader, DeserializationContext context)
 {
     this._reader = reader;
     this._context = context;
     this.objectRefIdHandler = new ReferenceIdHandlerForDeserializer<object>();
     this.typeRefIdHandler = new ReferenceIdHandlerForDeserializer<ConsolidatedString>();
 }
예제 #2
0
 internal Deserializer(XmlReader reader, DeserializationContext context)
 {
     if (reader == null)
     {
         throw PSTraceSource.NewArgumentNullException("reader");
     }
     this._reader = reader;
     this._context = context;
     this._deserializer = new InternalDeserializer(this._reader, this._context);
     try
     {
         this.Start();
     }
     catch (XmlException exception)
     {
         ReportExceptionForETW(exception);
         throw;
     }
 }
예제 #3
0
 internal Fragmentor(int fragmentSize, PSRemotingCryptoHelper cryptoHelper)
 {
     this._fragmentSize           = fragmentSize;
     this._serializationContext   = new SerializationContext(SerializationDepthForRemoting, SerializationOptions.RemotingOptions, cryptoHelper);
     this._deserializationContext = new System.Management.Automation.DeserializationContext(DeserializationOptions.RemotingOptions, cryptoHelper);
 }