コード例 #1
0
 public RegisteredHttpGetVI(
     ConnectionTypeManager connectionManger,
     WebServiceServer server,
     string componentPath,
     string viName,
     string urlPath)
     : base(connectionManger, server, componentPath, viName, urlPath)
 {
     Server.RegisterPath(new HttpGetHandlingRequestPath(this));
 }
コード例 #2
0
 public RegisteredExecutable(
     ConnectionTypeManager connectionManger,
     WebServiceServer server,
     string componentPath,
     string viName,
     string urlPath)
 {
     ComponentPath     = componentPath;
     Name              = viName;
     ConnectionManager = connectionManger;
     Server            = server;
     UrlPath           = urlPath;
 }
コード例 #3
0
        private static async Task ServeAsync()
        {
            Log.WriteLine("Starting Server");
            _locations.Add(new ComponentLocation(AssemblyExtensions.ApplicationDirectory, recursive: false, watchChanges: false));
            _host = CompositionHost.InitializeNewHost(null, _locations);

            _host.GetSharedExportedValue <ScheduledActivityManager>();

            _gllManager = new GllManager(_host);
            await _gllManager.InitializeAsync();

            // setup
            _connectionManager = new ConnectionTypeManager(_gllManager);
            _httpServer        = new WebServiceServer();
            LoadConfigurations(GllLocation);
            _systemTrayManager.InstallTrayIcon();
            Log.WriteLine("Server Ready!");
        }