示例#1
0
        /// <summary>
        /// Registers the container host.
        /// </summary>
        /// <param name="containerHost">The container host.</param>
        public void RegisterContainerHost(IGenericContainerHost containerHost)
        {
            this.containerHost = containerHost;

            // Register message type
            serializer.GetByType(typeof(IGenericMessage), new SerializationContext(serializer, this, false));
        }
示例#2
0
 public IValueItem GetByType(Type type)
 {
     return(serializer.GetByType(type, this));
 }