static void Main(string[] args) { var instance = new NiceHashClient(); instance.Test(); Console.WriteLine("Done."); }
protected override void RegisterServices(ContainerBuilder builder, ITypeFinder typeFinder, IAppConfig config) { builder.Register(c => config).AsSelf().InstancePerLifetimeScope(); var client = new NiceHashClient("582959", "59bdfba6-fff7-20a2-6c3d-6c8235b1d8dc"); builder.Register(c => client).As <NiceHashClient>().InstancePerLifetimeScope(); builder.RegisterType <OrderAdjustmentHelper>().AsSelf().InstancePerLifetimeScope(); builder.RegisterType <OnlineMarketViewController>().AsSelf().InstancePerLifetimeScope(); builder.RegisterType <Logger>().As <ILogger>().InstancePerLifetimeScope(); builder.RegisterType <Logger>().As <IBufferedLogger>().InstancePerLifetimeScope(); }
public OnlineMarketViewController(NiceHashClient nicehash) { _nicehash = nicehash; }
public OrderAdjustmentTask(OrderAdjustmentHelper helper, NiceHashClient nicehash) { _helper = helper; _nicehash = nicehash; }
//private List<Order> _allOrders; //private List<Order> _myOrders; public OrderAdjustmentHelper(NiceHashClient nicehash) { _nicehash = nicehash; }