コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
 private void StartKiaraServer()
 {
     KiaraServer  = new KIARAServer(ServerURI, ServerPort, ServerPath, "fives.kiara");
     KiaraService = KiaraServer.StartService(ServerURI, ServicePort, "/service/", ServiceTransport, ServiceProtocol);
 }
コード例 #4
0
 private void StartKiaraServer()
 {
     KiaraServer = new KIARAServer(ServerURI, ServerPort, ServerPath, "fives.kiara");
     KiaraService = KiaraServer.StartService(ServerURI, ServicePort, "/service/", ServiceTransport, ServiceProtocol);
 }