상속: BasePacketProfile
예제 #1
0
		public static PacketSendProfile Acquire( Type type ) {
			PacketSendProfile prof;

			if ( !_profiles.TryGetValue( type, out prof ) ) {
				_profiles.Add( type, prof = new PacketSendProfile( type ) );
			}

			return prof;
		}
예제 #2
0
        public static PacketSendProfile Acquire(Type type)
        {
            if (!_profiles.TryGetValue(type, out PacketSendProfile prof))
            {
                _profiles.Add(type, prof = new PacketSendProfile(type));
            }

            return(prof);
        }
예제 #3
0
        public static PacketSendProfile Acquire(Type type)
        {
            if (!Core.Profiling)
            {
                return(null);
            }

            PacketSendProfile prof;

            if (!_profiles.TryGetValue(type, out prof))
            {
                _profiles.Add(type, prof = new PacketSendProfile(type));
            }

            return(prof);
        }
예제 #4
0
        public static PacketSendProfile Acquire(Type type)
        {
            var appSettings = IOC.IoC.Resolve <IUOSettings>();

            if (!appSettings.Profiling)
            {
                return(null);
            }
            PacketSendProfile prof;

            if (!_profiles.TryGetValue(type, out prof))
            {
                _profiles.Add(type, prof = new PacketSendProfile(type));
            }

            return(prof);
        }