PretendToPublish() 공개 정적인 메소드

public static PretendToPublish ( ) : void
리턴 void
예제 #1
0
        public void UsePaymentService()
        {
            var paymentService = paymentServiceFactory.Create();

            paymentService.Start();
            Program.PretendToPublish();

            paymentServiceFactory.Release(paymentService);

            paymentServiceFactory.Dispose();
        }
예제 #2
0
        public void RegisteringDelegates()
        {
            var container = new WindsorContainer().Install(FromAssembly.This());

            var now = container.Resolve <Func <DateTime> >();

            Console.Out.WriteLine("now() = {0}", now());

            var paymentService = container.Resolve <IPaymentService>();

            paymentService.Start();
            Program.PretendToPublish();
        }