public CameraViewModel(IMyShuttleClient myShuttleClient, IApplicationDataRepository applicationDataRepository, DetailsViewModel details) { _random = new Random((int)DateTime.Now.Ticks); MyShuttleClient = myShuttleClient; ApplicationDataRepository = applicationDataRepository; Details = details; DetectingCompletedCommand = new RelayCommand(DetectingCompleted); StartDetectingCommand = new RelayCommand(StartDetecting); }
public ApplicationStorageService(IApplicationDataRepository applicationDataRepository) { if (applicationDataRepository == null) { throw new ArgumentNullException("applicationDataRepository"); } _applicationDataRepository = applicationDataRepository; }
//public ApplicationSettingServiceSingleton( // IApplicationDataRepository applicationDataRepository, // IMvxMessenger messenger) //{ // if (applicationDataRepository == null) // { // throw new ArgumentNullException("applicationDataRepository"); // } // if (messenger == null) // { // throw new ArgumentNullException("messenger"); // } // _applicationDataRepository = applicationDataRepository; // _messenger = messenger; // _token = _messenger.Subscribe<ReloadDataMessage>(_ => MarkUrlPrefixAsDirty()); //} // construction sin soporte MVVM Cross public ApplicationSettingServiceSingleton( IApplicationDataRepository applicationDataRepository) { if (applicationDataRepository == null) { throw new ArgumentNullException("applicationDataRepository"); } _applicationDataRepository = applicationDataRepository; }
public CameraViewModel(IMyShuttleClient myShuttleClient, IApplicationDataRepository applicationDataRepository, DetailsViewModel details) { _random = new Random((int)DateTime.Now.Ticks); MyShuttleClient = myShuttleClient; ApplicationDataRepository = applicationDataRepository; Details = details; DetectingCompletedCommand = new RelayCommand(DetectingCompleted); StartDetectingCommand = new RelayCommand(StartDetecting); }
public ApplicationStorageService(IApplicationDataRepository applicationDataRepository) { if (applicationDataRepository == null) { throw new ArgumentNullException("applicationDataRepository"); } _applicationDataRepository = applicationDataRepository; }
//public ApplicationSettingServiceSingleton( // IApplicationDataRepository applicationDataRepository, // IMvxMessenger messenger) //{ // if (applicationDataRepository == null) // { // throw new ArgumentNullException("applicationDataRepository"); // } // if (messenger == null) // { // throw new ArgumentNullException("messenger"); // } // _applicationDataRepository = applicationDataRepository; // _messenger = messenger; // _token = _messenger.Subscribe<ReloadDataMessage>(_ => MarkUrlPrefixAsDirty()); //} // construction sin soporte MVVM Cross public ApplicationSettingServiceSingleton( IApplicationDataRepository applicationDataRepository) { if (applicationDataRepository == null) { throw new ArgumentNullException("applicationDataRepository"); } _applicationDataRepository = applicationDataRepository; }
public ApplicationSettingServiceSingleton( IApplicationDataRepository applicationDataRepository) { if (applicationDataRepository == null) { throw new ArgumentNullException("applicationDataRepository"); } //if (messenger == null) //{ // throw new ArgumentNullException("messenger"); //} _applicationDataRepository = applicationDataRepository; //_messenger = messenger; //_token = _messenger.Subscribe<ReloadDataMessage>(_ => MarkUrlPrefixAsDirty()); }
/// <summary> /// 构造器 /// </summary> /// <param name="applicationDataRepository">应用数据仓储</param> public ApplicationDataService(IApplicationDataRepository applicationDataRepository) { this.applicationDataRepository = applicationDataRepository; }
public ApplicationSettingServiceSingleton( IApplicationDataRepository applicationDataRepository, IMvxMessenger messenger) { if (applicationDataRepository == null) { throw new ArgumentNullException("applicationDataRepository"); } if (messenger == null) { throw new ArgumentNullException("messenger"); } _applicationDataRepository = applicationDataRepository; _messenger = messenger; _token = _messenger.Subscribe<ReloadDataMessage>(_ => MarkUrlPrefixAsDirty()); }
public ApplicationDataService() { appDataRepository = IocContainer.Resolve <IApplicationDataRepository>(); }
//----------------------------------------------------------------------------------------------------------------------------------------------------- public EntityServiceComponent(IDataRepositoryEndpoint endpoint, Auto<ILogger> logger, IComponentContext componentContext) { _repository = endpoint.Contract; _logger = logger.Instance; _container = (ILifetimeScope)componentContext; }
/// <summary> /// 构造器 /// </summary> /// <param name="applicationDataRepository">应用数据仓储</param> public ApplicationDataService(IApplicationDataRepository applicationDataRepository) { this.applicationDataRepository = applicationDataRepository; }