Ejemplo n.º 1
0
 public GitHubCloud(CloudParameters model, GitHubCloudOptions options)
 {
     Parameters = model;
     _gitHub    = new GitHubClient(new ProductHeaderValue(options.GithubApplicationId));
     _isAuthenticated.OnNext(false);
     EnsureLoggedInIfTokenSaved();
 }
Ejemplo n.º 2
0
 public VkDocsCloud(CloudParameters model, VkDocsCloudOptions options)
 {
     Parameters = model;
     _options   = options;
     _isAuthorized.OnNext(false);
     EnsureLoggedInIfTokenSaved();
 }
Ejemplo n.º 3
0
 public YandexDiskCloud(CloudParameters model, IAuthenticator authenticator, YandexDiskCloudOptions options)
 {
     Parameters     = model;
     _authenticator = authenticator;
     _options       = options;
     _isAuthorized.OnNext(false);
     EnsureLoggedInIfTokenSaved();
 }
Ejemplo n.º 4
0
 public GoogleDriveCloud(CloudParameters model, IBlobCache blobCache, GoogleDriveCloudOptions options)
 {
     Parameters = model;
     _blobCache = blobCache;
     _options   = options;
     _isAuthorized.OnNext(false);
     EnsureLoggedInIfTokenSaved();
 }
Ejemplo n.º 5
0
 public void CopyFrom(CloudParameters other)
 {
     Clouds.Density         = other.Density;
     Clouds.Scale1          = other.Scale1;
     Clouds.Scale2          = other.Scale2;
     Clouds.Shading         = other.Shading;
     Clouds.ShadowStrength  = other.ShadowStrength;
     Clouds.ShadowProjector = other.ShadowProjector;
     Clouds.Sharpness       = other.Sharpness;
     Clouds.Tone            = other.Tone;
 }
Ejemplo n.º 6
0
 public LocalCloud(CloudParameters model) => Parameters = model;
Ejemplo n.º 7
0
 public SftpCloud(CloudParameters model)
 {
     Parameters = model;
     _isAuthorized.OnNext(false);
 }
Ejemplo n.º 8
0
 public ICloud CreateCloud(CloudParameters parameters) => parameters.Type switch
 {