static void Main(string[] args) { IServiceCollection services = new ServiceCollection(); services.AddLogging(l => { l.AddConsole(c => { c.LogToStandardErrorThreshold = LogLevel.Trace; }); }); services .AddFastDFSCore(c => { c.Trackers = new List <Tracker>() { new Tracker("192.168.0.6", 22122) }; }) .AddFastDFSDotNetty() .AddSingleton <ISampleAppService, SampleAppService>(); var provider = services.BuildServiceProvider(); _sampleAppService = provider.GetService <ISampleAppService>(); RunAsync(); Console.ReadLine(); }
public ProductInfoViewModel(Product item) { Title = item.Name; _item = item; _service = ServiceLocator.Instance.Resolve <ISampleAppService>(); Refresh(); }
public MainViewModel(ISampleAppService sampleappservice, IMvxMessenger messenger) { _sampleAppService = sampleappservice; ReloadList(); _messenger = messenger; _listChangedToken = _messenger.Subscribe<SampleAppChangedMessage>(OnListChanged); }
static void Main(string[] args) { IServiceCollection services = new ServiceCollection(); services.AddLogging(l => { l.SetMinimumLevel(LogLevel.Trace); l.AddConsole(); }); services .AddFastDFSCore() //.AddFastDFSDotNetty() .AddFastDFSSuperSocket() .AddSingleton <ISampleAppService, SampleAppService>(); var provider = services.BuildServiceProvider(); var option = provider.GetRequiredService <IOptions <FastDFSOptions> >().Value; option.ClusterConfigurations.Add(new ClusterConfiguration() { Name = "Cluster1", Trackers = new List <Tracker>() { new Tracker("192.168.0.98", 22122) }, AntiStealToken = true, SecretKey = "123456" }); _sampleAppService = provider.GetService <ISampleAppService>(); RunAsync(); Console.ReadLine(); }
public SampleAppService_Tests( ISampleAppService sampleAppService, ICurrentTenant currentTenant) : base(currentTenant) { _sampleAppService = sampleAppService; }
public LoginPage() { InitializeComponent(); _service = ServiceLocator.Instance.Resolve <ISampleAppService>(); DataResource(); }
public ClientDemoService( ISampleAppService sampleAppService, IIdentityModelAuthenticationService authenticationService, IConfiguration configuration) { _sampleAppService = sampleAppService; _authenticationService = authenticationService; _configuration = configuration; }
public ClientDemoService( ISampleAppService sampleAppService, IIdentityModelAuthenticationService authenticationService, IConfigurationAccessor configurationAccessor, IBookAppService bookAppService) { _sampleAppService = sampleAppService; _authenticationService = authenticationService; _configurationAccessor = configurationAccessor; _bookAppService = bookAppService; }
public SampleController(ISampleAppService sampleAppService) { _sampleAppService = sampleAppService; }
public SampleAppService_Tests() { _sampleAppService = GetRequiredService <ISampleAppService>(); }
public PersonBaseViewModel(ISampleAppService sampleAppService, IMvxLocationWatcher locationWatcher) { SampleAppService = sampleAppService; LocationWatcher = locationWatcher; }
public SampleController(ISampleAppService appService) { AppService = appService; }
public ProductViewModel() { Title = "Produkty"; _service = ServiceLocator.Instance.Resolve <ISampleAppService>(); Refresh(); }
public MainForm(ISampleAppService sampleAppService) { InitializeComponent(); this.sampleAppService = sampleAppService; }
public PersonDetailViewModel(ISampleAppService sampleAppService, IMvxLocationWatcher locationWatcher) : base(sampleAppService, locationWatcher) { }
public PersonAddViewModel(ISampleAppService sampleAppService, IMvxLocationWatcher locationWatcher) : base(sampleAppService, locationWatcher) { Person = new Person(); }