コード例 #1
0
ファイル: Program.cs プロジェクト: modulexcite/NinjectSample
        static void Main(string[] args)
        {
            IKernel _Kernal = new StandardKernel();
            _Kernal.Load(Assembly.GetExecutingAssembly());
            ISMSService _SMSService = _Kernal.Get<ISMSService>();

            UIHandler _UIHandler = new UIHandler(_SMSService);
            _UIHandler.SendConfirmationMsg("96279544480");

            Console.ReadLine();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: tjoudeh/NinjectSample
        static void Main(string[] args)
        {
            IKernel _Kernal = new StandardKernel();

            _Kernal.Load(Assembly.GetExecutingAssembly());
            ISMSService _SMSService = _Kernal.Get <ISMSService>();

            UIHandler _UIHandler = new UIHandler(_SMSService);

            _UIHandler.SendConfirmationMsg("96279544480");

            Console.ReadLine();
        }