public Handler(IMemoryCache memoryCache, IIntentManager intentManager, IContentDao contentDao)
 {
     this.mLogger        = LogManager.GetCurrentClassLogger();
     this.mMemoryCache   = memoryCache;
     this.mIntentManager = intentManager;
     this.mContentDao    = contentDao;
 }
 public Handler(IMemoryCache memoryCache, IIntentManager intentManager, ILabelDao labelDao)
 {
     mLogger             = LogManager.GetCurrentClassLogger();
     this.mMemoryCache   = memoryCache;
     this.mIntentManager = intentManager;
     this.mLabelDao      = labelDao;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="DataAccessIntentHandler"/> class.
        /// </summary>
        public DataAccessIntentHandler(IIntentManager intentManager,
            INetworkSearchConfigBuilder networkSearchConfigBuilder,
            IDataSourcesAndSchema dataSourcesAndSchema,
            IExploreConfigBuilder exploreConfigBuilder,
            INotificationService notificationService,
            IExplorationIntentFactory explorationIntentFactory,
            IAcxiomConstants acxiomConstants)
        {
            mIntentManager = intentManager;
            mNetworkSearchConfigBuilder = networkSearchConfigBuilder;
            mDataSourcesAndSchema = dataSourcesAndSchema;
            mExploreConfigBuilder = exploreConfigBuilder;
            mNotificationService = notificationService;
            mExplorationIntentFactory = explorationIntentFactory;
            mAcxiomConstants = acxiomConstants;

            mDataSource = mDataSourcesAndSchema.DataSources.SingleOrDefault(x => x.Id.Equals(mAcxiomConstants.AcxiomDaodExternalContextRoot));

            if (mDataSource == null)
            {
                string extractDataSourceNotFound = string.Format(AcxiomStringResources.ErrorExternalDataSourceNotFound, mAcxiomConstants.AcxiomDaodExternalContextRoot);
                mNotificationService.PresentInformationNotificationWithoutDiagnosticsToTheUser(extractDataSourceNotFound);
                throw new ArgumentException(string.Format(CultureInfo.InvariantCulture,
                                                          AcxiomStringResources.ErrorExternalDataSourceNotFound,
                                                          mAcxiomConstants.AcxiomDaodExternalContextRoot));
            }
        }
 public Notification(
     IPlatformNotificationBuilder notificationBuilder,
     IIntentManager intentManager,
     IAndroidNotificationManager androidNotificationManager)
 {
     this.notificationBuilder        = notificationBuilder ?? throw new ArgumentNullException(nameof(notificationBuilder));
     this.intentManager              = intentManager;
     this.androidNotificationManager = androidNotificationManager;
 }
 internal NotificationManager(IToastOptions options)
 {
     this.options                    = options ?? throw new ArgumentNullException(nameof(options));
     this.snackbarExtension          = typeof(ISnackbarExtension);
     this.notificationExtension      = typeof(IDroidNotificationExtension);
     this.androidNotificationManager = NewAndroidNotificationManager();
     this.systemEventSource          = new SystemEventSource(null);
     this.intentManager              = new IntentManager(options, androidNotificationManager, systemEventSource, null);
     this.history                    = new History(intentManager, androidNotificationManager);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ItemDetailsCommandProvider"/> class.
 /// </summary>
 /// <remarks>
 /// The constructor requires an implementation of ICommandContextState
 /// because ItemDetailsCommandProvider is used with
 /// IGenericContextMenuCommandProviderFactoryRegistry as a factory for
 /// creating commands based on ICommandsContext objects.
 /// </remarks>
 public ItemDetailsCommandProvider(
     ICommandsContext commandsContext, 
     ICommandContextState commandContextState, 
     IIntentManager intentManager,
     ISubsettingExampleOriginIdentifierFactory subsettingExampleOriginIdentifierFactory,
     ISubsetExampleOriginHelper subsetExampleOriginHelper)
 {
     mCommandsContext = commandsContext;
     mCommandContextState = commandContextState;
     mIntentManager = intentManager;
     mSubsettingExampleOriginIdentifierFactory = subsettingExampleOriginIdentifierFactory;
     mSubsetExampleOriginHelper = subsetExampleOriginHelper;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ItemDetailsCommandProvider"/> class.
 /// </summary>
 /// <remarks>
 /// The constructor requires an implementation of ICommandContextState
 /// because ItemDetailsCommandProvider is used with
 /// IGenericContextMenuCommandProviderFactoryRegistry as a factory for
 /// creating commands based on ICommandsContext objects.
 /// </remarks>
 public ItemDetailsCommandProvider(
     ICommandsContext commandsContext,
     ICommandContextState commandContextState,
     IIntentManager intentManager,
     ISubsettingExampleOriginIdentifierFactory subsettingExampleOriginIdentifierFactory,
     ISubsetExampleOriginHelper subsetExampleOriginHelper)
 {
     mCommandsContext     = commandsContext;
     mCommandContextState = commandContextState;
     mIntentManager       = intentManager;
     mSubsettingExampleOriginIdentifierFactory = subsettingExampleOriginIdentifierFactory;
     mSubsetExampleOriginHelper = subsetExampleOriginHelper;
 }
Beispiel #8
0
        /// <summary>
        /// ナビゲーションリストを元にプレビュー画面を表示している場合の、
        /// プレビュー画面の情報をビューに送信します。
        /// </summary>
        /// <param name="intentManager"></param>
        /// <param name="memoryCache"></param>
        /// <param name="totalNum">ナビゲーションリスト内の総項目数</param>
        /// <param name="currentPos">ナビゲーションリスト内での現在の位置</param>
        internal static void ExecuteInvalidatePreviewInfo(
            IIntentManager intentManager,
            IMemoryCache memoryCache,
            long totalNum,
            long currentPos)
        {
            var cacheEntryOptions = new MemoryCacheEntryOptions()
                                    .SetSlidingExpiration(TimeSpan.FromSeconds(30));

            memoryCache.Set("PreviewInfo",
                            new PreviewInfo(totalNum, currentPos),
                            cacheEntryOptions);
            intentManager.AddIntent(ServiceType.FrontendIpc, "UpdateProp", "PreviewInfo");
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonSubsetSubsetIntentHandler"/> class.
 /// </summary>
 public JsonSubsetSubsetIntentHandler(IIntentManager intentManager,
                                      IJsonSerializerWrapper jsonSerializerWrapper,
                                      INetworkSearchConfigBuilder networkSearchConfigBuilder,
                                      IDataSourcesAndSchema dataSourcesAndSchema,
                                      IExploreConfigBuilder exploreConfigBuilder,
                                      IExplorationIntentFactory explorationIntentFactory,
                                      IJavaScriptHostedCallRunner javaScriptHostedCallRunner)
 {
     mIntentManager              = intentManager;
     mJsonSerializerWrapper      = jsonSerializerWrapper;
     mNetworkSearchConfigBuilder = networkSearchConfigBuilder;
     mDataSourcesAndSchema       = dataSourcesAndSchema;
     mExploreConfigBuilder       = exploreConfigBuilder;
     mExplorationIntentFactory   = explorationIntentFactory;
     mJavaScriptHostedCallRunner = javaScriptHostedCallRunner;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonSubsetSubsetIntentHandler"/> class.
 /// </summary>
 public JsonSubsetSubsetIntentHandler(IIntentManager intentManager, 
     IJsonSerializerWrapper jsonSerializerWrapper,
     INetworkSearchConfigBuilder networkSearchConfigBuilder,
     IDataSourcesAndSchema dataSourcesAndSchema,
     IExploreConfigBuilder exploreConfigBuilder,
     IExplorationIntentFactory explorationIntentFactory,
     IJavaScriptHostedCallRunner javaScriptHostedCallRunner)
 {
     mIntentManager = intentManager;
     mJsonSerializerWrapper = jsonSerializerWrapper;
     mNetworkSearchConfigBuilder = networkSearchConfigBuilder;
     mDataSourcesAndSchema = dataSourcesAndSchema;
     mExploreConfigBuilder = exploreConfigBuilder;
     mExplorationIntentFactory = explorationIntentFactory;
     mJavaScriptHostedCallRunner = javaScriptHostedCallRunner;
 }
Beispiel #11
0
        private IDataSource mDataSource = null;           //ACXIOM External Data Source

        /// <summary>
        /// Initializes a new instance of the <see cref="DataAccessIntentHandler"/> class.
        /// </summary>
        public DataAccessIntentHandler(IIntentManager intentManager,
                                       INetworkSearchConfigBuilder networkSearchConfigBuilder,
                                       IDataSourcesAndSchema dataSourcesAndSchema,
                                       IExploreConfigBuilder exploreConfigBuilder,
                                       INotificationService notificationService,
                                       IExplorationIntentFactory explorationIntentFactory,
                                       IAcxiomConstants acxiomConstants)
        {
            mIntentManager = intentManager;
            mNetworkSearchConfigBuilder = networkSearchConfigBuilder;
            mDataSourcesAndSchema       = dataSourcesAndSchema;
            mExploreConfigBuilder       = exploreConfigBuilder;
            mNotificationService        = notificationService;
            mExplorationIntentFactory   = explorationIntentFactory;
            mAcxiomConstants            = acxiomConstants;

            mAcxiomExternalDataSource  = mAcxiomConstants.AcxiomDaodExternalContextRoot; //defaults to daod
            mAcxiomDaodXmlSourcePath   = mAcxiomConstants.AcxiomDaodXmlSourcePath;       //defaults to c:/i2-integration/xml/
            mAcxiomTransformSourcePath = mAcxiomConstants.AcxiomDaodTransformSourcePath; //defaults to empty
        }
        private string mSubetName = "{subset_default_name}"; //set default for now;

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="DataAccessIntentHandler"/> class.
        /// </summary>
        public DataAccessIntentHandler(IIntentManager intentManager, 
            INetworkSearchConfigBuilder networkSearchConfigBuilder,
            IDataSourcesAndSchema dataSourcesAndSchema,
            IExploreConfigBuilder exploreConfigBuilder,
            INotificationService notificationService,
            IExplorationIntentFactory explorationIntentFactory,
            IAcxiomConstants acxiomConstants)
        {
            mIntentManager = intentManager;
            mNetworkSearchConfigBuilder = networkSearchConfigBuilder;
            mDataSourcesAndSchema = dataSourcesAndSchema;
            mExploreConfigBuilder = exploreConfigBuilder;
            mNotificationService = notificationService;
            mExplorationIntentFactory = explorationIntentFactory;
            mAcxiomConstants = acxiomConstants;

            mAcxiomExternalDataSource = mAcxiomConstants.AcxiomDaodExternalContextRoot;//defaults to daod
            mAcxiomDaodXmlSourcePath = mAcxiomConstants.AcxiomDaodXmlSourcePath; //defaults to c:/i2-integration/xml/
            mAcxiomTransformSourcePath = mAcxiomConstants.AcxiomDaodTransformSourcePath; //defaults to empty
        }
Beispiel #13
0
        public NotificationBuilder(
            IToastOptions options,
            IIntentManager intentManager,
            IAndroidNotificationManager androidNotificationManager,
            IServiceProvider?serviceProvider)
        {
            this.options       = options ?? throw new ArgumentNullException(nameof(options));
            this.intentManager = intentManager ?? throw new ArgumentNullException(nameof(intentManager));
            this.androidNotificationManager = androidNotificationManager;
            this.serviceProvider            = serviceProvider;
            this.UseConfigurationFrom <IDroidNotificationExtension>(serviceProvider);
            this.UseConfigurationFrom <IPlatformSpecificExtension>(serviceProvider);
            if (serviceProvider != null)
            {
                this.logger = serviceProvider.GetService <ILogger <NotificationBuilder> >();
            }

            this.Timeout = TimeSpan.FromSeconds(7);
            builder      = new NotificationCompat.Builder(Application.Context, options.ChannelOptions.Id);
            customArgs   = new Dictionary <string, string>();
        }
Beispiel #14
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AcxiomTabViewModel"/> class.
        /// </summary>
        public AcxiomTabViewModel(IAcxiomTabView view,
                                  IIntentManager intentManager,
                                  IDispatcherTimer dispatcherTimer,
                                  IDependencyInjectionContainer container,
                                  IAcxiomConstants acxiomConstants)
            : base(isCloseable: true)
        {
            mIntentManager   = intentManager;
            mContainer       = container;
            mDispatcherTimer = dispatcherTimer;
            mAcxiomConstants = acxiomConstants;
            Header           = AcxiomStringResources.TabHeader;        //Tab Header text
            HeaderTooltip    = AcxiomStringResources.TabHeaderTooltip; //Tab header tooltip

            mBaseURL           = mAcxiomConstants.ExternalSubsetGenerationUri.ToString();
            PageLocation       = mBaseURL;
            mJavaScriptHandler = new JavaScriptHandler(this);

            SetAsViewModelForView(view);
            //All is ok, start to render html UI
            mDispatcherTimer.Interval = TimeSpan.FromMilliseconds(100);
            mDispatcherTimer.Tick    += CheckForHtmlReady;
            mDispatcherTimer.Start();
        }
Beispiel #15
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="intentManager"></param>
 public ScreenManager(IIntentManager intentManager)
 {
     this.mIntentManger = intentManager;
 }
 public Handler(IMemoryCache memoryCache, IIntentManager intentManager)
 {
     this.mLogger        = LogManager.GetCurrentClassLogger();
     this.mMemoryCache   = memoryCache;
     this.mIntentManager = intentManager;
 }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="intentManager"></param>
 /// <param name="loggerFactory"></param>
 public PixstockIntentHandler(IIntentManager intentManager)
 {
     this.mIntentManager = intentManager;
     mLogger             = LogManager.GetCurrentClassLogger();
 }
Beispiel #18
0
 public BotController(IOptions <BotCredential> botCredential, ITokenManager tokenManager, IIntentManager intentManager)
 {
     this._tokenManager  = tokenManager;
     this._intentManager = intentManager;
     this._botCredential = botCredential.Value;
 }
Beispiel #19
0
 public Handler(IIntentManager intentManager, IContentDao contentDao)
 {
     this.mLogger        = LogManager.GetCurrentClassLogger();
     this.mIntentManager = intentManager;
     this.mConentDao     = contentDao;
 }
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="intentManager"></param>
 public ScreenManager(IIntentManager intentManager)
 {
     this.mIntentManager   = intentManager;
     this.mLogger          = LogManager.GetCurrentClassLogger();
     this.mBackTrantionMap = Builder.Make(); // 戻る遷移テーブルを取得 
 }
 public Handler(IMemoryCache memoryCache, IIntentManager intentManager)
 {
     this.mMemoryCache   = memoryCache;
     this.mIntentManager = intentManager;
 }
 public Handler(IMemoryCache memoryCache, IIntentManager intentManager, ICategoryDao categoryDao)
 {
     this.mMemoryCache   = memoryCache;
     this.mIntentManager = intentManager;
     this.mCategoryDao   = categoryDao;
 }
 public History(IIntentManager intentManager, IAndroidNotificationManager androidNotificationManager)
 {
     this.intentManager = intentManager;
     this.androidNotificationManager = androidNotificationManager;
 }
Beispiel #24
0
 public Handler(IIntentManager intentManager)
 {
     this.mLogger        = LogManager.GetCurrentClassLogger();
     this.mIntentManager = intentManager;
 }
Beispiel #25
0
 public PixstockIntentHandler(IIntentManager intentManager)
 {
     this.mIntentManager = intentManager;
 }