예제 #1
0
        public ChannelProvider(string hostOrIp, int port)
        {
            this.hostOrIp = hostOrIp;
            this.port     = port;

            Host = new ProtocolHost();
        }
예제 #2
0
        public static SecondaryRepositoryService <T> RegisterSecondaryService <T>(this ProtocolHost host, string path, bool databaseSync = false) where T : class, IEntity
        {
            var service = host.Serializer.CreateSecondaryService <T>(path, databaseSync);

            host.RegisterHandler(service, true);
            return(service);
        }