public OnPremFromCloudAccessStream(DataType desiredRequestType, DataType desiredResponseType, IMDExternalConnection externalCnnection) : base(desiredRequestType, desiredResponseType) { if (externalCnnection == null) { throw new ArgumentNullException("ExternalCnnection"); } this.ExternalCnnection = externalCnnection; }
public override void Dispose() { try { if (this.RequestStream != null) { this.RequestStream.Close(); this.RequestStream = null; } } catch { } try { if (this.ResponseStream != null) { this.ResponseStream.Close(); this.ResponseStream = null; } } catch { } try { if (this.ExternalCnnection != null) { this.ExternalCnnection.Close(); this.ExternalCnnection = null; } } catch { } try { base.Dispose(true); } catch { } }