Beispiel #1
0
        static void Main(string[] args)
        {
            var services = Inject.Create();

            services.AddRemoteRequest();
            services.Build();

            var helloservice = App.GetService <IHelloService>();

            Console.WriteLine(helloservice.SayHello());

            var baiducontent = "https://www.baidu.com".GetAsStringAsync().GetAwaiter().GetResult();

            Console.WriteLine(baiducontent);
        }
Beispiel #2
0
        public UnitStartup(IMessageSink messageSink) : base(messageSink)
        {
            var services = Inject.Create();

            services.Build();
        }