public void InitializeTelescopeService(string id)
        {
            if (Service.DeviceCreated)
            {
                Service.Dispose();
                Service = null;
            }

            // This creates the service and defines the driver ID.

            Service.CreateDevice(id);
        }
 public PublicationsController(
     ICommentService commentService,
     IJournalService journalService,
     ITelescopeService telescopeService,
     IPublicationService publicationService,
     UserManager <User> userManager)
 {
     this.commentService     = commentService;
     this.journalService     = journalService;
     this.telescopeService   = telescopeService;
     this.publicationService = publicationService;
     this.userManager        = userManager;
 }
 public DiscoveriesController(
     IDiscoveryService discoveryService,
     IPlanetService planetService,
     IStarService starService,
     ITelescopeService telescopeService,
     IUserService userService,
     UserManager <User> userManager)
 {
     this.discoveryService = discoveryService;
     this.planetService    = planetService;
     this.starService      = starService;
     this.telescopeService = telescopeService;
     this.userService      = userService;
     this.userManager      = userManager;
 }
 private void ReleaseTelescopeService()
 {
     _service.Dispose();
     _service = null;
 }
 public TelescopesController(ITelescopeService telescopeService)
 {
     this.telescopeService = telescopeService;
 }