/// <summary>
        /// Constructs a LocalServerImpl object.
        /// </summary>
        public LocalServerImpl()
        {
            dor = new EmptyDoR();
            doi = new EmptyDoI();
            syncID = Guid.NewGuid();

            server = new KIARAServer(KIARAServerManager.Instance.ServerURI,
                KIARAServerManager.Instance.ServerPort,
                "/serversync/",
                "serverSync.kiara");

            Configuration serverSyncConfig = ConfigurationManager.OpenExeConfiguration(this.GetType().Assembly.Location);
            int syncPort = int.Parse(serverSyncConfig.AppSettings.Settings["serverSyncPort"].Value);
            service = server.StartService(KIARAServerManager.Instance.ServerURI, syncPort, "/", "ws", "fives-json");
            service.OnNewClient += ServerSyncTools.ConfigureJsonSerializer;

            RegisterSyncIDAPI(service);
        }
        /// <summary>
        /// Constructs a LocalServerImpl object.
        /// </summary>
        public LocalServerImpl()
        {
            dor    = new EmptyDoR();
            doi    = new EmptyDoI();
            syncID = Guid.NewGuid();

            server = new KIARAServer(KIARAServerManager.Instance.ServerURI,
                                     KIARAServerManager.Instance.ServerPort,
                                     "/serversync/",
                                     "serverSync.kiara");

            Configuration serverSyncConfig = ConfigurationManager.OpenExeConfiguration(this.GetType().Assembly.Location);
            int           syncPort         = int.Parse(serverSyncConfig.AppSettings.Settings["serverSyncPort"].Value);

            service              = server.StartService(KIARAServerManager.Instance.ServerURI, syncPort, "/", "ws", "fives-json");
            service.OnNewClient += ServerSyncTools.ConfigureJsonSerializer;

            RegisterSyncIDAPI(service);
        }
Ejemplo n.º 3
0
 private void StartKiaraServer()
 {
     KiaraServer  = new KIARAServer(ServerURI, ServerPort, ServerPath, "fives.kiara");
     KiaraService = KiaraServer.StartService(ServerURI, ServicePort, "/service/", ServiceTransport, ServiceProtocol);
 }
 private void StartKiaraServer()
 {
     KiaraServer = new KIARAServer(ServerURI, ServerPort, ServerPath, "fives.kiara");
     KiaraService = KiaraServer.StartService(ServerURI, ServicePort, "/service/", ServiceTransport, ServiceProtocol);
 }