Skip to content

Instantly share code, notes, and snippets.

👨‍💻
Working on it...

Vardhaman Deshpande vman

👨‍💻
Working on it...
Block or report user

Report or block vman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vman
vman / SPFxServiceScope.md
Last active Apr 14, 2019
Tech Note: ServiceScope API
View SPFxServiceScope.md
View ConsumerCounter.ts
const counterServiceInstance: ICounterService = this.context.serviceScope.consume(CounterService.serviceKey);
const currentCounterValue : string = `Current counter value: ${counterServiceInstance.increaseAndReturnCount()}`;
this.domElement.getElementsByClassName("counterValue")[0].textContent = currentCounterValue;
View gps
gulp package-solution
View gb
gulp bundle
View Graph_AppOnly_ClientSecret.cs
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using System;
using System.Globalization;
using System.Net.Http;
using System.Net.Http.Headers;
namespace AppPermissionsDemo
{
class Program
{
View Graph_AppOnly_Cert.cs
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using System;
using System.Globalization;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Security.Cryptography.X509Certificates;
namespace AppPermissionsDemo
{
class Program
View SPO_AppOnly_SPAuth.cs
using Microsoft.SharePoint.Client;
using OfficeDevPnP.Core;
using System;
namespace AppPermissionsDemo
{
class Program
{
static void Main(string[] args)
{
View SPO_AppOnly_Cert.cs
using Microsoft.SharePoint.Client;
using OfficeDevPnP.Core;
using System;
using System.Security.Cryptography.X509Certificates;
namespace AppPermissionsDemo
{
class Program
{
static void Main(string[] args)
View dynamicproppane.ts
export default class SiteInformationWebPart extends BaseClientSideWebPart<ISiteInformationWebPartProps> {
private propertyFieldTermPicker;
private propertyFieldPeoplePicker;
private principalType;
//onInit(), render() functions removed for brevity
//function executes only before property pane is loaded.
protected async loadPropertyPaneResources(): Promise<void> {
You can’t perform that action at this time.