This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Azure.Storage.Blobs; | |
public string UploadJsonToAzureBlobStorage(string json) | |
{ | |
// Name of the share, directory, and file | |
string shareName = ConfigurationManager.AppSettings.Get("inRiver.StorageAccountShareReference"); | |
string storageAccountName = ConfigurationManager.AppSettings.Get("inRiver.StorageAccountName"); | |
string storageAccountKey = ConfigurationManager.AppSettings.Get("inRiver.StorageAccountKey"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<component type="typeof(Counter)" render-mode="ServerPrerendered" | |
param-Count="@Model.StartCount" /> | |
___above in cshtml________below in razor____________ | |
@using Microsoft.AspNetCore.Components | |
<p>Current count: @Count</p> | |
<button @onclick="IncrementCount" class="btn btn-primary">Click me</button> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using EPiServer; | |
using EPiServer.Cms.UI.AspNetIdentity; | |
using EPiServer.Core; | |
using EPiServer.Logging; | |
using EPiServer.Notification; | |
using EPiServer.ServiceLocation; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Identity; | |
using Microsoft.AspNetCore.Mvc; | |
using Newtonsoft.Json; |
OlderNewer