Code Monkey home page Code Monkey logo

connectedservicessdksamples's Introduction

ConnectedServicesSdkSamples

======================================

This repository contains everything you need to get started building a Connected Services extension.

The repository is made up of 1 top-level directory:

  • src. Contains several sample providers for the 3 UI Configurators (SinglePage, Grid & Wizard) as well as Design Time Auth and Handlers for adding files to your project. You can use these to jumpstart your development, or as a reference.

Documentation

Connected Services SDK

connectedservicessdksamples's People

Contributors

eerhardt avatar michaelsimons avatar selvasingh avatar stevelasker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

connectedservicessdksamples's Issues

Provider icons don't look very good in the dark theme

If you change VS to use the dark theme, the provider icons don't look very good. If you look at the Single Page provider icon it has two issues. 1. It is very difficult to see as the black border of the transparent page blends in with the background. 2. It has a light 1 pixel wide line on the right edge of the icon.
sample provider icons in dark theme

As a provider author, I can see how to use custom themes

Provider authors will likely not know how to do custom themes without some initial guidance.
They will likely just apply their own style to the controls in their Views, losing the default theming. Without a sample, they will likely just brute force duplicate the themes, possibly even for dark and blue themes

This is a sample for how to use the ~12 controls that have common themes, and make a customization on our common themes

Passing in a Context to ViewModels breaks XAML Intellisense and WYSIWYG designer features

The XAML designer uses default constructors on types to provide intellisense, and WYSIWYG support.

In our samples, and providers, we make use of the ConnectedServiceProviderContext as a context, passed in. This is used in the constructors. With this pattern, the default constructor is only used for the designer and makes the code look strange, and coding confusing as it surfaces a designer requirement to add the parameterless constructor, but has no provider author value.

Context is a valuable property, used in most providers, and should be added to the base classes, set for the provider author, so there's less to worry about.

Proposal:
Add ConnectedServiceProviderContext to ConnectedServiceConfigurator
In ConnectedServiceProvider, when CreateConfiguratorAsync is called, set the ConnectedServiceProviderContext for the provider author, so they get the value, without having to write the code, and break the XAML designer

  • Action is to update the samples to set the context externally, and leave the parameterless constructor for the XAML designer

As a provider author, I can see a sample for using T4 templates

We have a reference implementation of using T4 templates within the Salesforce connected service. However, Salesforce tends to be a bit complicated to grock smaller concepts.
This would show how to use T4 templates, including a common reference location allowing the service to be updated without overriding customizations.
Alternatively, if the reference implementation in Salesforce is what we should convey, then perhaps an article in https://github.com/Microsoft/ConnectedServices/tree/master/SDK/articles

Sample for Configurator differences based on the project type

If your Connected Service supports more than one handler, and the questions may vary based on the current project, you'll likely want to ask the questions relevant to the specific project, or even some details related to the project. For instance, in the Azure Active Directory Connected Service, the developer is prompted different whether the project support is considered a WebAPI or MVC project. In the Salesforce case, the developer is prompted for Web Server Flow authentication in a Web App. If the project were a WinForms or Console App, it should hide that option. In the Azure Active Directory case, this was implemented, however as of Visual Studio 2015 RTM, we had not yet implemented the project detection.

Issue is to create a sample## for detecting the project type, Showing/Hiding a WizardPage or WPF element, or simply disabling an option based on the current project type.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.