1234567891011121314151617181920212223242526272829303132333435363738 |
- using Vit.Extensions;
- using Sers.ServiceStation;
- using static App.Ioc.Station.Controllers.Demo.DemoController;
- using Vit.Ioc;
- namespace App.Ioc.Station
- {
- public class Program
- {
- public static void Main(string[] args)
- {
- ServiceStation.Init();
- #region ioc
- //use ioc
- Sers.Core.Module.Rpc.RpcFactory.Instance.UseIoc();
- IocHelp.AddSingleton<ISingleton, ArgModel>();
- IocHelp.AddScoped<IScoped, ArgModel>();
- IocHelp.AddTransient<ITransient, ArgModel>();
- IocHelp.Update();
- #endregion
- ServiceStation.Instance.localApiService.LoadSsApi(typeof(Program).Assembly);
- ServiceStation.Start();
- ServiceStation.RunAwait();
- }
- }
- }
|