Ejemplo n.º 1
0
        protected override Collection<PSDriveInfo> InitializeDefaultDrives()
        {
            NewDriveDynamicParameters();

            try{
                Collection<PSDriveInfo> result = new Collection<PSDriveInfo>();
                PSDriveInfo drive =
                    new PSDriveInfo(
                        "TMX",
                        this.ProviderInfo,
                        @"TMX\TMXProvider::\",
                        "This is the TMX root drive",
                        null);
                rootDrive = new TMXDriveInfo(drive);
                result.Add(rootDrive);
                return result;
            }
            catch (Exception e) {
                WriteVerbose(e.Message);
                WriteVerbose("TMXProvider::InitializeDefaultDrives()");
                return null;
            }
        }
Ejemplo n.º 2
0
 protected override void Stop()
 {
     this.rootDrive = null;
 }