Пример #1
0
 public FtpProject(IProjectFactory factory, IServiceProvider serviceProvider, FtpConnection connection)
     : base(factory, serviceProvider)
 {
     this._connection = connection;
     this._rootItem = new FtpConnectionProjectItem(this);
     ((IServiceContainer) base.GetService(typeof(IServiceContainer))).AddService(typeof(IWebDocumentRunService), this);
 }
Пример #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         IServiceContainer service = (IServiceContainer) base.GetService(typeof(IServiceContainer));
         if (service != null)
         {
             service.RemoveService(typeof(IWebDocumentRunService));
         }
         if (this._connection != null)
         {
             this._connection.Dispose();
             this._connection = null;
         }
         this._rootItem = null;
     }
     base.Dispose(disposing);
 }