Ejemplo n.º 1
0
        internal Channels(IChannelPriorityProvider priorityProvider)
        {
            _log = Logs.Create((LogCategory.Core), GetType().Name);

            _openChannelsBySubId = new Dictionary <ushort, T>();
            _propertiesPool      = new Pool <ChannelProperties>(64, () => new ChannelProperties(priorityProvider));
        }
Ejemplo n.º 2
0
        internal Channels([NotNull] IChannelPriorityProvider priorityProvider)
        {
            if (priorityProvider == null)
            {
                throw new ArgumentNullException("priorityProvider");
            }

            Log = Logs.Create(LogCategory.Core, GetType().Name);

            _openChannelsBySubId = new Dictionary <ushort, T>();
            _propertiesPool      = new Pool <ChannelProperties>(64, () => new ChannelProperties(priorityProvider));
        }
Ejemplo n.º 3
0
 internal RoomChannels([NotNull] IChannelPriorityProvider priorityProvider)
     : base(priorityProvider)
 {
     OpenedChannel += (id, _) => Log.Debug("Opened channel to room '{0}'", id);
     ClosedChannel += (id, _) => Log.Debug("Closed channel to room '{0}'", id);
 }
Ejemplo n.º 4
0
 internal PlayerChannels(IChannelPriorityProvider priorityProvider)
     : base(priorityProvider)
 {
     OpenedChannel += (id, _) => Log.Debug("Opened channel to player '{0}'", id);
     ClosedChannel += (id, _) => Log.Debug("Closed channel to player '{0}'", id);
 }
Ejemplo n.º 5
0
 internal ChannelProperties(IChannelPriorityProvider defaultPriority)
 {
     _defaultPriority = defaultPriority;
 }
Ejemplo n.º 6
0
 internal RoomChannels(IChannelPriorityProvider priorityProvider)
     : base(priorityProvider)
 {
 }
Ejemplo n.º 7
0
 internal PlayerChannels(IChannelPriorityProvider priorityProvider)
     : base(priorityProvider)
 {
 }