public ChannelProvider(string hostOrIp, int port)
        {
            this.hostOrIp = hostOrIp;
            this.port     = port;

            Host = new ProtocolHost();
        }
Beispiel #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);
        }