예제 #1
0
        public ConsumerPlugin(IProducerPlugin producer)
        {
            Type consumerType = this.GetType();
            Type providerType = producer.GetType();

            ConsoleLog.WriteAssemblyInformation("ConsumerPlugin - Constructor", consumerType, providerType);
        }
예제 #2
0
        public void SetProducer(IProducerPlugin producer)
        {
            Type newProducerType = producer.GetType();

            bool typeCheckResult = newProducerType == expectedProducerType;

            ConsoleLog.WriteAssemblyInformation(
                $"ConsumerPlugin - SetProducer - Type check result: {typeCheckResult} - [expected, provided]",
                expectedProducerType,
                newProducerType);
        }