コード例 #1
0
        public string GetLanguage()
        {
            var methodInfo = typeof(IExternalService).GetMethod(nameof(GetLanguage));
            var result     = PrisePluginBridge.Invoke(this.hostService, methodInfo);

            return(result as string);
        }
コード例 #2
0
        public Task <CurrentLanguage> GetCurrentLanguage()
        {
            var methodInfo = typeof(ICurrentLanguageProvider).GetMethod(nameof(GetCurrentLanguage));

            return(PrisePluginBridge.Invoke(this.hostService, methodInfo) as Task <CurrentLanguage>);
        }
コード例 #3
0
        public string GetLanguage()
        {
            var methodInfo = typeof(ISharedLanguageService).GetMethod(nameof(GetLanguage));

            return(PrisePluginBridge.Invoke(this.hostService, methodInfo) as string);
        }
コード例 #4
0
        public Task <ExternalObject> ModifyExternalObject(ExternalObject external)
        {
            var methodInfo = typeof(IExternalService).GetMethod(nameof(ModifyExternalObject));

            return(PrisePluginBridge.Invoke(this.hostService, methodInfo, external) as Task <ExternalObject>);
        }
コード例 #5
0
        public Task <ExternalObject> GetExternalObjectAsync()
        {
            var methodInfo = typeof(IExternalService).GetMethod(nameof(GetExternalObjectAsync));

            return(PrisePluginBridge.Invoke(this.hostService, methodInfo) as Task <ExternalObject>);
        }
コード例 #6
0
        public ExternalObject GetExternalObject()
        {
            var methodInfo = typeof(IExternalService).GetMethod(nameof(GetExternalObject));

            return(PrisePluginBridge.Invoke(this.hostService, methodInfo) as ExternalObject);
        }
コード例 #7
0
        public Task <PluginConfiguration> ProvideForPluginKey(string pluginKey)
        {
            var methodInfo = typeof(IPluginConfigurationProvider).GetMethod(nameof(ProvideForPluginKey));

            return(PrisePluginBridge.Invoke(this.hostService, methodInfo, pluginKey) as Task <PluginConfiguration>);
        }