Exemple #1
0
        protected Session(SessionResource resource)
        {
            // copy data from API object.
            resource.CloneInto(this);

            ResourceGroupName = Id.ExtractFieldFromResourceId("resourcegroups");

            NodeName = Id.ExtractFieldFromResourceId("nodes");
        }
Exemple #2
0
 public static Session Create(SessionResource resource)
 {
     return resource == null ? null : new Session(resource);
 }