コード例 #1
0
ファイル: DataServices.cs プロジェクト: shukla2009/Personal
        public DataServices(DateTime date) {

            PortiaService = new PortiaServiceImpl(date);
            DtcService = new DtcServiceImpl(date);
            ReconService = new ComparisonServiceImpl(date);
        
        }
コード例 #2
0
 public AlbumsGroupUserControlViewModel(IDataService dataService, INavigationService navigationService)
 {
     this.m_dataService = dataService;
     this.m_navigationService = navigationService;
     this.DataGroup = new DataGroupViewModel();
     this.LoadData();
 }
コード例 #3
0
        public MessagingControllerImpl(IDataService dataService)
        {
            //Argument Contract
            Requires.NotNull("dataService", dataService);

            _dataService = dataService;
        }
コード例 #4
0
ファイル: ViewModel.cs プロジェクト: BrianGoff/BITS
        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public ViewModel(IDataService dataService)
        {
            _dataService = dataService;

            monitorServersThread = new Thread(monitorServersThreadRun);
            monitorServersThread.Start();
        }
コード例 #5
0
ファイル: MainViewModel.cs プロジェクト: LogoFX/tools
 public MainViewModel(
     IViewModelCreatorService viewModelCreatorService,
     IDataService dataService)
 {
     _viewModelCreatorService = viewModelCreatorService;
     _dataService = dataService;
 }
コード例 #6
0
		public static UmbracoContentIndexer GetUmbracoIndexer(
            Lucene.Net.Store.Directory luceneDir, 
            Analyzer analyzer = null,
            IDataService dataService = null)
		{
            if (dataService == null)
            {
                dataService = new TestDataService();
            }

            if (analyzer == null)
            {
                analyzer = new StandardAnalyzer(Lucene.Net.Util.Version.LUCENE_29);
            }

		    var indexSet = new IndexSet();
            var indexCriteria = indexSet.ToIndexCriteria(dataService, UmbracoContentIndexer.IndexFieldPolicies);

		    var i = new UmbracoContentIndexer(indexCriteria,
		                                      luceneDir, //custom lucene directory
                                              dataService,
		                                      analyzer,
		                                      false);

			//i.IndexSecondsInterval = 1;

			i.IndexingError += IndexingError;

			return i;
		}
コード例 #7
0
ファイル: RegisterViewModel.cs プロジェクト: naturalna/TopTen
        public RegisterViewModel(INavigationService navigationService)
        {
            this.User = new User();
            this.navigationService = navigationService;
            this.dataService = SimpleIoc.Default.GetInstance<IDataService>();

            this.BackCommand = new RelayCommand<string>((s) =>
            {
                this.navigationService.GoBack();
            });

            this.RegisterCommand = new RelayCommand(async() =>
            {
                if (this.User.Password == this.User.RepeatedPassword)
                {
                    await dataService.CreateUser(this.User.Username, this.User.Password, this.User.Email);

                    //if registration is faild
                    if (((App)App.Current).AuthenticatedUser != null && ((App)App.Current).AuthenticatedUser.IsAuthenticated)
                    {
                        this.navigationService.Navigate(ViewsType.Groups);
                    }
                }
                else
                {
                    new MessageDialog("Двете пароли не съвпадат").ShowAsync();
                }
            });
        }
コード例 #8
0
ファイル: MainViewModel.cs プロジェクト: patware/GenerateText
        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public MainViewModel(IDataService dataService, Services.IQaStringGeneratorService generator)
        {
            _dataService = dataService;
            _generator = generator;

            _generatedTexts = new System.Collections.ObjectModel.ObservableCollection<TextItemViewModel>();

            this.PropertyChanged += MainViewModel_PropertyChanged;

            _dataService.GetData(
                (item, error) =>
                {
                    if (error != null)
                    {
                        // Report error here
                        return;
                    }

                    _pattern = item.LastPattern;
                    _numberOfCharacters = item.LastCount;
                    _qAApproved = item.LastQa;
                    _countList = item.LastCountList;

                    _results = _generator.Generate(this.NumberOfCharacters, this.Pattern, this.QAApproved);

                    generateCountList();
                });
        }
コード例 #9
0
 public WarehouseItemsViewModel(
     IDataService dataService,
     IViewModelCreatorService viewModelCreatorService)
 {
     _dataService = dataService;
     _viewModelCreatorService = viewModelCreatorService;
 }
コード例 #10
0
ファイル: CatalogueController.cs プロジェクト: avgx/knigoskop
 public CatalogueController(IDataService dataService, ISocialService socialService, IMailService mailService, IConvertService convertService, AuthorizationRoot authorizationRoot)
     : base(dataService, authorizationRoot)
 {
     _socialService = socialService;
     _mailService = mailService;
     _convertService = convertService;
 }
コード例 #11
0
ファイル: PlayerManager.cs プロジェクト: uwe-e/BSE.Tunes
 public PlayerManager(IDataService dataService, IAccountService accountService, IPlayerService playerService, IDialogService dialogservice, IResourceService resourceService)
 {
     this.m_dataService = dataService;
     this.m_accountService = accountService;
     this.PlayerService = playerService;
     this.m_dialogService = dialogservice;
     this.m_resourceService = resourceService;
     Messenger.Default.Register<MediaOpenedMessage>(this, message =>
     {
         this.OnMediaOpened();
     });
     Messenger.Default.Register<MediaEndedMessage>(this, message =>
     {
         this.OnMediaEnded();
     });
     Messenger.Default.Register<MediaNextPressedMessage>(this, message =>
     {
         if (this.CanExecuteNextTrack())
         {
             this.ExecuteNextTrack();
         }
     });
     Messenger.Default.Register<MediaPreviousPressedMessage>(this, message =>
     {
         if (this.CanExecutePreviousTrack())
         {
             this.ExecutePreviousTrack();
         }
     });
 }
コード例 #12
0
        /// <summary>Sorts a query like a SQL ORDER BY clause does.</summary>
        /// <param name="service">Service with data and configuration.</param>
        /// <param name="source">Original source for query.</param>
        /// <param name="orderingInfo">Ordering definition to compose.</param>
        /// <returns>The composed query.</returns>
        internal static IQueryable OrderBy(IDataService service, IQueryable source, OrderingInfo orderingInfo)
        {
            Debug.Assert(service != null, "service != null");
            Debug.Assert(source != null, "source != null");
            Debug.Assert(orderingInfo != null, "orderingInfo != null");

            Expression queryExpr = source.Expression;
            string methodAsc = "OrderBy";
            string methodDesc = "OrderByDescending";
            foreach (OrderingExpression o in orderingInfo.OrderingExpressions)
            {
                LambdaExpression selectorLambda = (LambdaExpression)o.Expression;
                Type selectorType = selectorLambda.Body.Type;
                service.Provider.CheckIfOrderedType(selectorType);

                queryExpr = Expression.Call(
                    typeof(Queryable),
                    o.IsAscending ? methodAsc : methodDesc,
                    new Type[] { source.ElementType, selectorType },
                    queryExpr,
                    Expression.Quote(selectorLambda));

                methodAsc = "ThenBy";
                methodDesc = "ThenByDescending";
            }

            return source.Provider.CreateQuery(queryExpr);
        }
コード例 #13
0
ファイル: UpdateTracker.cs プロジェクト: AlineGuan/odata.net
        /// <summary>Fires the notification for a single action.</summary>
        /// <param name="service">Service on which methods should be invoked.</param>
        /// <param name="target">Object to be tracked.</param>
        /// <param name="container">Container in which object is changed.</param>
        /// <param name="action">Action affecting target.</param>
        internal static void FireNotification(IDataService service, object target, ResourceSetWrapper container, UpdateOperations action)
        {
            Debug.Assert(service != null, "service != null");
            AssertActionValues(target, container);

            MethodInfo[] methods = container.ChangeInterceptors;
            if (methods != null)
            {
                object[] parameters = new object[2];
                parameters[0] = target;
                parameters[1] = action;
                for (int i = 0; i < methods.Length; i++)
                {
                    try
                    {
                        methods[i].Invoke(service.Instance, parameters);
                    }
                    catch (TargetInvocationException exception)
                    {
                        ErrorHandler.HandleTargetInvocationException(exception);
                        throw;
                    }
                }
            }
        }
コード例 #14
0
 public BasePlaylistableViewModel(IDataService dataService, IAccountService accountService, IDialogService dialogService, IResourceService resourceService)
 {
     this.DataService = dataService;
     this.AccountService = accountService;
     this.DialogService = dialogService;
     this.ResourceService = resourceService;
 }
コード例 #15
0
        public CustomerDetailViewModel(Account account, Page currentPage)
        {
            if (account == null)
            {
                Account = new Account();
                Account.Industry = Account.IndustryTypes[0];
                Account.OpportunityStage = Account.OpportunityStages[0];

                this.Title = "New Account";
            }
            else
            {
                Account = account;
                this.Title = "Account";
            }

            _CurrentPage = currentPage;

            this.Icon = "account.png";

            _DataClient = DependencyService.Get<IDataService>();
            _GeoCodingService = DependencyService.Get<IGeoCodingService>();

            MessagingCenter.Subscribe<Account>(this, MessagingServiceConstants.ACCOUNT, (Account) =>
                {
                    IsInitialized = false;
                });
        }
コード例 #16
0
        public ApplicationController(CompositionContainer container, IPresentationService presentationService,
            IMessageService messageService, ShellService shellService, ProxyController proxyController, DataController dataController)
        {
            InitializeCultures();
            presentationService.InitializeCultures();

            this.container = container;
            this.dataController = dataController;
            this.proxyController = proxyController;
            this.messageService = messageService;

            this.dataService = container.GetExportedValue<IDataService>();

            this.floatingViewModel = container.GetExportedValue<FloatingViewModel>();
            this.mainViewModel = container.GetExportedValue<MainViewModel>();
            this.userBugsViewModel = container.GetExportedValue<UserBugsViewModel>();
            this.teamBugsViewModel = container.GetExportedValue<TeamBugsViewModel>();

            shellService.MainView = mainViewModel.View;
            shellService.UserBugsView = userBugsViewModel.View;
            shellService.TeamBugsView = teamBugsViewModel.View;

            this.floatingViewModel.Closing += FloatingViewModelClosing;

            this.showMainWindowCommand = new DelegateCommand(ShowMainWindowCommandExcute);
            this.englishCommand = new DelegateCommand(() => SelectLanguage(new CultureInfo("en-US")));
            this.chineseCommand = new DelegateCommand(() => SelectLanguage(new CultureInfo("zh-CN")));
            this.settingCommand = new DelegateCommand(SettingDialogCommandExcute, CanSettingDialogCommandExcute);
            this.aboutCommand = new DelegateCommand(AboutDialogCommandExcute);
            this.exitCommand = new DelegateCommand(ExitCommandExcute);
        }
コード例 #17
0
        /// <summary>Writes the Service Document to the output stream.</summary>
        /// <param name="service">Data service instance.</param>
        internal override void WriteRequest(IDataService service)
        {
            try
            {
                this.Writer.WriteStartElement(XmlConstants.AtomPublishingServiceElementName, XmlConstants.AppNamespace);
                this.IncludeCommonNamespaces();
                this.Writer.WriteStartElement("", XmlConstants.AtomPublishingWorkspaceElementName, XmlConstants.AppNamespace);

                this.Writer.WriteStartElement(XmlConstants.AtomTitleElementName, XmlConstants.AtomNamespace);
                this.Writer.WriteString(XmlConstants.AtomPublishingWorkspaceDefaultValue);
                this.Writer.WriteEndElement();

                foreach (ResourceSetWrapper container in this.Provider.ResourceSets)
                {
                    this.Writer.WriteStartElement("", XmlConstants.AtomPublishingCollectionElementName, XmlConstants.AppNamespace);
                    this.Writer.WriteAttributeString(XmlConstants.AtomHRefAttributeName, container.Name);

                    this.Writer.WriteStartElement(XmlConstants.AtomTitleElementName, XmlConstants.AtomNamespace);
                    this.Writer.WriteString(container.Name);
                    this.Writer.WriteEndElement();  // Close 'title' element.

                    this.Writer.WriteEndElement();  // Close 'collection' element.
                }

                this.Writer.WriteEndElement();  // Close 'workspace' element.
                this.Writer.WriteEndElement();  // Close 'service' element.
            }
            finally
            {
                this.Writer.Close();
            }
        }
コード例 #18
0
        /// <summary>
        /// Overloaded Constructor
        /// </summary>
        /// <param name="dataService"></param>
        public LauncherViewModel(IDataService dataService)
        {
            // Store the data service object..
            this._dataService = dataService;

            // Set default properties..
            this.DeleteConfigVisibility = Visibility.Hidden;
            this.ConfigEditVisibility = Visibility.Hidden;
            this.TempConfig = null;

            // Connect command handlers..
            this.NewConfigCommand = new RelayCommand(NewConfigClicked);
            this.EditConfigCommand = new RelayCommand(EditConfigClicked);
            this.SaveEditConfigCommand = new RelayCommand(SaveEditConfigClicked);
            this.CancelEditConfigCommand = new RelayCommand(CancelEditConfigClicked);
            this.BrowseLaunchFileCommand = new RelayCommand(BrowseLaunchFileClicked);
            this.DeleteConfigCommand = new RelayCommand(DeleteConfigClicked);
            this.ConfirmDeleteConfigCommand = new RelayCommand(ConfirmDeleteConfigClicked);
            this.CancelDeleteConfigCommand = new RelayCommand(CancelDeleteConfigClicked);
            this.LaunchCommand = new RelayCommand(LaunchClicked);

            // Populate the configuration collection..
            this._dataService.GetConfigurationFiles(
                (configs, error) =>
                    {
                        this.Configurations = (error == null) ?
                                                  new ObservableCollection<Configuration>(configs) :
                                                  new ObservableCollection<Configuration>();
                    });
        }
コード例 #19
0
ファイル: LeadDetailViewModel.cs プロジェクト: XnainA/app-crm
        public LeadDetailViewModel(INavigation navigation, Account lead = null)
        {
            if (navigation == null)
            {
                throw new ArgumentNullException("navigation", "An instance of INavigation must be passed to the LeadDetailViewModel constructor.");
            }

            Navigation = navigation;

            if (lead == null)
            {
                Lead = new Account();
                this.Title = TextResources.Leads_NewLead;
            }
            else
            {
                Lead = lead;
                this.Title = lead.Company;
            }

            this.Icon = "contact.png";

            _DataClient = DependencyService.Get<IDataService>();

            _GeoCodingService = DependencyService.Get<IGeoCodingService>();
        }
コード例 #20
0
        public RoomSearchViewModel(IDataService dataService, ProgressViewModel progressViewModel)
        {
            _dataService = dataService;
            _progressViewModel = progressViewModel;

            SearchCommand = new RelayCommand(PerformSearch,
                               () => SelectedRooms != null && SelectedRooms.Count > 0);

            ResetData();

            SelectedDate = DateTime.Today;
            SelectedStartTime = DateTime.Now;

            var today = Today;
            if (DateTime.Now > today.AddHours(16))
            {
                SelectedEndTime = DateTime.Now.AddHours(1);
            }
            else if (DateTime.Now >= today.AddHours(12))
            {
                SelectedEndTime = today.AddHours(16);
            }
            else
            {
                SelectedEndTime = today.AddHours(12);
            }
            SelectedExtras = RoomExtras.None;

            _progressViewModel.DataReloaded += OnDataReloaded;
        }
コード例 #21
0
ファイル: DataController.cs プロジェクト: avgx/knigoskop
        protected DataController(IDataService dataService, AuthorizationRoot authorizationRoot)
        {
            DataService = dataService;
            AuthorizationRoot = authorizationRoot;

            SetFacebOokkAplicationId();
        }
コード例 #22
0
ファイル: OrdersViewModel.cs プロジェクト: xamarin/app-crm
        public OrdersViewModel(Account account)
        {
            Account = account;

            _Orders = new List<Order>();

            _DataClient = DependencyService.Get<IDataService>();

            OrderGroups = new ObservableCollection<Grouping<Order, string>>();

            MessagingCenter.Subscribe<Order>(this, MessagingServiceConstants.SAVE_ORDER, order =>
                {
                    var index = _Orders.IndexOf(order);
                    if (index >= 0)
                    {
                        _Orders[index] = order;
                    }
                    else
                    {
                        _Orders.Add(order);
                    }

                    GroupOrders();
                });
        }
コード例 #23
0
ファイル: QueryService.cs プロジェクト: SamuelCox/Noise
 /// <summary>
 /// 
 /// </summary>
 public QueryService()
 {
     DataService = new DataService();
     QueryTcpClient = new QueryTcpClient();
     QueryTcpServer =  new QueryTcpServer();
     QueryTcpServer.QueryService = this;
 }
コード例 #24
0
        public SearchResultPageViewModel(IDataService dataService, INavigationService navigationService, IResourceService resourceService, IDialogService dialogService)
        {
            this.m_dataService = dataService;
            this.m_navigationService = navigationService;
            this.m_resourceService = resourceService;
			this.m_dialogservice = dialogService;
        }
コード例 #25
0
ファイル: GroupsViewModel.cs プロジェクト: naturalna/TopTen
 public GroupsViewModel(INavigationService navigationService)
 {
     this.dataService = SimpleIoc.Default.GetInstance<IDataService>();
     this.AllGroups = new ObservableCollection<Groups>();
     GetAllGroupsAsync();
     this.navigationService = navigationService;
 }
コード例 #26
0
        public ContactListViewModel( IDataService pDataService )
        {
            _dataService = pDataService;

            this.SmallTitle = "CONTACT TRACKER";
            this.BigTitle = "contacts";
        }
コード例 #27
0
ファイル: PlayerManager.cs プロジェクト: uwe-e/BSE.Tunes
 public PlayerManager(IDataService dataService, IAuthenticationService accountService, IPlayerService playerService, IDialogService dialogservice, IResourceService resourceService)
 {
     this.m_dataService = dataService;
     this.m_accountService = accountService;
     this.PlayerService = playerService;
     this.m_dialogService = dialogservice;
     this.m_resourceService = resourceService;
     Messenger.Default.Register<MediaStateChangedArgs>(this, args =>
     {
         switch (args.MediaState)
         {
             case MediaState.Opened:
                 OnMediaOpened();
                 break;
             case MediaState.Ended:
                 this.OnMediaEnded();
                 break;
             case MediaState.NextRequested:
                 ExecuteNextTrack();
                 break;
             case MediaState.PreviousRequested:
                 ExecutePreviousTrack();
                 break;
             case MediaState.DownloadCompleted:
                 PrepareNextTrack();
                 break;
         }
     });
 }
コード例 #28
0
ファイル: ArtistViewModel.cs プロジェクト: dupuyjs/rimshot
        public ArtistViewModel(IDataService dataService, INavigationService navigationService)
        {
            _dataService = dataService;
            _navigationService = navigationService;

            Task.Run(() => Initialize());
        }
コード例 #29
0
ファイル: ErrorHandler.cs プロジェクト: JianwenSun/cc
        /// <summary>Handles an exception when processing a batch response.</summary>
        /// <param name='service'>Data service doing the processing.</param>
        /// <param name="host">host to which we need to write the exception message</param>
        /// <param name='exception'>Exception thrown.</param>
        /// <param name='writer'>Output writer for the batch.</param>
        internal static void HandleBatchProcessException(IDataService service, DataServiceHostWrapper host, Exception exception, StreamWriter writer)
        {
            Debug.Assert(service != null, "service != null");
            Debug.Assert(host != null, "host != null");
            Debug.Assert(exception != null, "exception != null");
            Debug.Assert(writer != null, "writer != null");
            Debug.Assert(service.Configuration != null, "service.Configuration != null");
            Debug.Assert(WebUtil.IsCatchableExceptionType(exception), "WebUtil.IsCatchableExceptionType(exception)");

            string contentType;
            Encoding encoding;
            TryGetResponseFormatForError(host, out contentType, out encoding);

            HandleExceptionArgs args = new HandleExceptionArgs(exception, false, contentType, service.Configuration.UseVerboseErrors);
            service.InternalHandleException(args);
            host.ResponseVersion = XmlConstants.DataServiceVersion1Dot0 + ";";
            host.ProcessException(args);

            writer.Flush();
            Action<Stream> errorWriter = ProcessBenignException(exception, service);
            if (errorWriter == null)
            {
                errorWriter = CreateErrorSerializer(args, encoding);
            }

            errorWriter(writer.BaseStream);
            writer.WriteLine();
        }
コード例 #30
0
ファイル: TaskViewModel.cs プロジェクト: roosi/done
 /// <summary>
 /// Initializes a new instance of the TaskViewModel class.
 /// </summary>
 public TaskViewModel(Task model, string listId, IDataService dataService, INavigationService navigationService, IDialogService dialogService)
     : base(dataService, navigationService, dialogService)
 {
     _model = model;
     _listId = listId;
     update();
 }
コード例 #31
0
ファイル: User.cs プロジェクト: calian-pace/QuikRide
 public User(ILoggingService log, IDataService <IWebApiDataServiceQR> dataService, xDTO.User dto) : this(log, dataService)
 {
     _dto = dto;
 }
コード例 #32
0
 public ReservationRequestStatusType(ILoggingService log, IDataService <IWebApiDataServiceQR> dataService) : base(log, dataService)
 {
     _dto = new xDTO.ReservationRequestStatusType();
     OnLazyLoadRequest += HandleLazyLoadRequest;
 }
コード例 #33
0
 public OrderedListViewModel()
 {
     dataService   = new OrderService();
     SearchCommand = new DelegateCommand(SearchOrderList);
 }
コード例 #34
0
 // now you can inject any an other data service without model changes
 // XmlDataService, WebDataService, etc
 public CustomerModel(IDataService dataService)
 {
     this.dataService = dataService;
 }
コード例 #35
0
ファイル: DataController.cs プロジェクト: speetfaiah/near-me
 public DataController(IDataService dataService)
 {
     _dataService = dataService;
 }
コード例 #36
0
 public UmbracoMemberIndexer(IIndexCriteria indexerData, DirectoryInfo indexPath, IDataService dataService, Analyzer analyzer, bool async)
     : base(indexerData, indexPath, dataService, analyzer, async)
 {
 }
コード例 #37
0
        public MethodCreationDialogViewModel(IDataService <LabDbEntities> labDbdata) : base()
        {
            _labDbData = labDbdata;
            OemList    = _labDbData.RunQuery(new OrganizationsQuery()
            {
                Role = OrganizationsQuery.OrganizationRoles.StandardPublisher
            })
                         .ToList();;
            PropertiesList = _labDbData.RunQuery(new PropertiesQuery()).ToList();

            CancelCommand = new DelegateCommand <Window>(
                parent =>
            {
                parent.DialogResult = false;
            });

            ConfirmCommand = new DelegateCommand <Window>(
                parent =>
            {
                MethodInstance = new Method()
                {
                    Duration         = WorkHours,
                    Description      = Description,
                    Name             = "",
                    PropertyID       = _selectedProperty.ID,
                    ShortDescription = ShortDescription,
                    TBD = ""
                };

                if (_standardInstance == null)
                {
                    _standardInstance = new Std
                    {
                        Name           = Name,
                        OrganizationID = _selectedOem.ID,
                        CurrentIssue   = ""
                    };

                    MethodInstance.Standard = _standardInstance;
                }
                else
                {
                    if (_selectedOem.ID != _standardInstance.OrganizationID)
                    {
                        _standardInstance.OrganizationID = _selectedOem.ID;
                        _standardInstance.Update();
                    }

                    MethodInstance.StandardID = _standardInstance.ID;
                }

                int subMethodPositioncounter = 0;
                foreach (SubMethod subm in SubMethodList)
                {
                    subm.Position = subMethodPositioncounter++;
                    MethodInstance.SubMethods.Add(subm);
                }

                MethodInstance.MethodVariants
                .Add(new MethodVariant()
                {
                    Description = "",
                    Name        = "Standard"
                });

                parent.DialogResult = true;
            },
                parent => !HasErrors);

            Description      = "";
            Name             = "";
            SelectedOem      = null;
            SelectedProperty = null;
            ShortDescription = "";
            SubMethodList    = new ObservableCollection <SubMethod>();
            WorkHours        = 0;

            SubMethodList.CollectionChanged += OnSubMethodListChanged;
        }
コード例 #38
0
ファイル: Parser.cs プロジェクト: Mathetje/topx-creator
 public Parser(Globals globals, IDataService dataservice)
 {
     _globals     = globals;
     _dataservice = dataservice;
 }
コード例 #39
0
 public CreateCategoryCommandHandler(IDataService context)
 {
     this.context = context;
 }
コード例 #40
0
ファイル: User.cs プロジェクト: calian-pace/QuikRide
 public User(ILoggingService log, IDataService <IWebApiDataServiceQR> dataService) : base(log, dataService)
 {
     _dto = new xDTO.User();
     OnLazyLoadRequest += HandleLazyLoadRequest;
 }
コード例 #41
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContentController"/> class.
 /// </summary>
 /// <param name="dataService"></param>
 public ContentController(IDataService dataService)
 {
     this._dataService = dataService;
 }
コード例 #42
0
 public GanttDataService(ILogger <GanttDataService> logger, IDataService dataService)
 {
     this.logger      = logger;
     this.dataService = dataService;
 }
コード例 #43
0
 public LoginViewModel(Page parentPage)
 {
     Title        = "PDP Tracker";
     CurrentPage  = parentPage;
     _dataService = new DataService();
 }
コード例 #44
0
 private OneBrokenFileTransferModel(IDataService dataService, int friendNumber, int fileNumber, string name,
                                    long fileSizeInBytes,
                                    TransferDirection direction, Stream stream, long transferredBytes = 0)
     : base(dataService, friendNumber, fileNumber, name, fileSizeInBytes, direction, stream, transferredBytes)
 {
 }
コード例 #45
0
 public UmbracoContentIndexer(IIndexCriteria indexerData, Lucene.Net.Store.Directory luceneDirectory, IDataService dataService, Analyzer analyzer, bool async)
     : base(indexerData, luceneDirectory, dataService, analyzer, async)
 {
 }
コード例 #46
0
 public CategoriesController(IDataService dataService, IMapper mapper)
 {
     _dataService = dataService;
     _mapper      = mapper;
 }
コード例 #47
0
 public AddChangeEventModel(IAuthService authService, IMetaTagService imts, IDataService ds) : base(authService, imts, ds)
 {
 }
コード例 #48
0
 public MockGameService(IDataService <User> userService)
 {
     _userService = userService;
 }
コード例 #49
0
 public EditTwitterAccountInfoModel(IAuthService authService, IMetaTagService imts, IDataService ds, ITagService ts) : base(authService, imts, ds)
 {
 }
コード例 #50
0
 public AuditDSSetting(IDataService dataService, string connStringName)
 {
     this.DataServiceType = dataService.GetType();
     this.ConnString      = dataService.CustomizationString;
     this.ConnStringName  = connStringName;
 }
コード例 #51
0
 public AddEntityModel(IAuthService authService, IMetaTagService imts, ITagService ts, IDataService ds) : base(authService, imts, ds)
 {
 }
コード例 #52
0
 internal DataServiceProviderWrapper(DataServiceCacheItem cacheItem, IDataServiceMetadataProvider metadataProvider, IDataServiceQueryProvider queryProvider, IDataService dataService)
 {
     this.metadata                  = cacheItem;
     this.metadataProvider          = metadataProvider;
     this.queryProvider             = queryProvider;
     this.dataService               = dataService;
     this.operationWrapperCache     = new Dictionary <string, OperationWrapper>(EqualityComparer <string> .Default);
     this.metadataProviderEdmModels = new Dictionary <DataServiceOperationContext, MetadataProviderEdmModel>(EqualityComparer <DataServiceOperationContext> .Default);
     this.models                  = new Dictionary <DataServiceOperationContext, IEdmModel>(EqualityComparer <DataServiceOperationContext> .Default);
     this.edmSchemaVersion        = MetadataEdmSchemaVersion.Version1Dot0;
     this.containerNameCache      = null;
     this.containerNamespaceCache = null;
 }
コード例 #53
0
 public ExamManager_chengduduolun
     (IProviderFactory providerFactory, ISpeaker speaker, IMessenger messenger, IExamScore examScore, IDataService dataService, IGpsPointSearcher pointSearcher, ILog logger)
     : base(providerFactory, speaker, messenger, examScore, dataService, pointSearcher, logger)
 {
 }
コード例 #54
0
 public QuotePageModel(IDataService dataService)
 {
     _dataService = dataService;
 }
コード例 #55
0
 public PublicAccessController(ImageStore imageStore, IDataService dataService)
 {
     _imageStore  = imageStore;
     _dataService = dataService;
 }
コード例 #56
0
 public IndexModel(IDataService db, INotificationService ns)
 {
     _db      = db;
     _ns      = ns;
     BlogItem = new BlogItem();
 }
コード例 #57
0
ファイル: ImportService.cs プロジェクト: Chidilives/Blogifier
 public ImportService(IDataService db, IStorageService ss)
 {
     _db   = db;
     _ss   = ss;
     _msgs = new List <ImportMessage>();
 }
コード例 #58
0
 public PostController(IDataService dataService) : base(dataService)
 {
 }
コード例 #59
0
ファイル: ExchangeService.cs プロジェクト: eugeny-trunin/ozon
 public ExchangeService(IRateClient rateClient, IDataService dataService)
 {
     this.rateClient  = rateClient;
     this.dataService = dataService;
 }
コード例 #60
0
 public ObservableQuery(IDataService db)
 {
     _db = db;
     H.Initialize(this, OnPropertyChanged);
 }