示例#1
0
 internal SiteSiteextension(ArmResource options, SiteExtensionInfoData resource) : base(options, resource.Id)
 {
     HasData            = true;
     _data              = resource;
     _clientDiagnostics = new ClientDiagnostics(ClientOptions);
     _webAppsRestClient = new WebAppsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri);
 }
        SiteSiteextension IOperationSource <SiteSiteextension> .CreateResult(Response response, CancellationToken cancellationToken)
        {
            using var document = JsonDocument.Parse(response.ContentStream);
            var data = SiteExtensionInfoData.DeserializeSiteExtensionInfoData(document.RootElement);

            return(new SiteSiteextension(_client, data));
        }
示例#3
0
 internal SiteSiteextension(ArmClient armClient, SiteExtensionInfoData data) : this(armClient, data.Id)
 {
     HasData = true;
     _data   = data;
 }
 internal SiteSlotSiteextensionResource(ArmClient client, SiteExtensionInfoData data) : this(client, data.Id)
 {
     HasData = true;
     _data   = data;
 }