public string GetLanguage()
        {
            var methodInfo = typeof(IExternalService).GetMethod(nameof(GetLanguage));
            var result     = PrisePluginBridge.Invoke(this.hostService, methodInfo);

            return(result as string);
        }
        public Task <CurrentLanguage> GetCurrentLanguage()
        {
            var methodInfo = typeof(ICurrentLanguageProvider).GetMethod(nameof(GetCurrentLanguage));

            return(PrisePluginBridge.Invoke(this.hostService, methodInfo) as Task <CurrentLanguage>);
        }
        public string GetLanguage()
        {
            var methodInfo = typeof(ISharedLanguageService).GetMethod(nameof(GetLanguage));

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

            return(PrisePluginBridge.Invoke(this.hostService, methodInfo, external) as Task <ExternalObject>);
        }
        public Task <ExternalObject> GetExternalObjectAsync()
        {
            var methodInfo = typeof(IExternalService).GetMethod(nameof(GetExternalObjectAsync));

            return(PrisePluginBridge.Invoke(this.hostService, methodInfo) as Task <ExternalObject>);
        }
        public ExternalObject GetExternalObject()
        {
            var methodInfo = typeof(IExternalService).GetMethod(nameof(GetExternalObject));

            return(PrisePluginBridge.Invoke(this.hostService, methodInfo) as ExternalObject);
        }
Example #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>);
        }