Exemple #1
0
        public IObservable <IWorkspace> Create(IWorkspace workspace)
        {
            var dto = new UserApi.WorkspaceParameters {
                Name = workspace.Name, InitialPricingPlan = PricingPlans.Free
            };
            var json = serializer.Serialize(dto, SerializationReason.Post);

            return(SendRequest <Workspace>(endPoints.Post, AuthHeader, json));
        }
Exemple #2
0
        public async Task <IWorkspace> Create(IWorkspace workspace)
        {
            var dto = new UserApi.WorkspaceParameters {
                Name = workspace.Name, InitialPricingPlan = PricingPlans.Free
            };
            var json = serializer.Serialize(dto, SerializationReason.Post);

            var response = await SendRequest <Workspace>(endPoints.Post, AuthHeader, json);

            return(response);
        }