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); }
public UnitStartup(IMessageSink messageSink) : base(messageSink) { var services = Inject.Create(); services.Build(); }