当前位置: 首页>>代码示例>>C#>>正文


C# this.CreateManager方法代码示例

本文整理汇总了C#中this.CreateManager方法的典型用法代码示例。如果您正苦于以下问题:C# this.CreateManager方法的具体用法?C# this.CreateManager怎么用?C# this.CreateManager使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在this的用法示例。


在下文中一共展示了this.CreateManager方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetS3Objects

 public static IList<S3Object> GetS3Objects(this ICakeContext context, string prefix, S3Settings settings)
 {
     return context.CreateManager().GetObjects(prefix, settings);
 }
开发者ID:SharpeRAD,项目名称:Cake.AWS.S3,代码行数:4,代码来源:S3Aliases.cs

示例2: StartEC2Instances

 public static bool StartEC2Instances(this ICakeContext context, string instances, EC2Settings settings)
 {
     return context.CreateManager().StartInstances(instances.Split(','), settings);
 }
开发者ID:SharpeRAD,项目名称:Cake.AWS.EC2,代码行数:4,代码来源:EC2Aliases.cs

示例3: CreateInvalidation

 public static void CreateInvalidation(this ICakeContext context, string distributionId, string item, CloudFrontSettings settings)
 {
     context.CreateManager().CreateInvalidation(distributionId, new List<string>() { item }, "", settings);
 }
开发者ID:SharpeRAD,项目名称:Cake.AWS.CloudFront,代码行数:4,代码来源:CloudFrontAliases.cs

示例4: DescribeInstances

 public static IList<InstanceStatus> DescribeInstances(this ICakeContext context, IList<string> instances, EC2Settings settings)
 {
     return context.CreateManager().DescribeInstances(instances, settings);
 }
开发者ID:SharpeRAD,项目名称:Cake.AWS.EC2,代码行数:4,代码来源:EC2Aliases.cs

示例5: DescribeTags

 public static IList<TagDescription> DescribeTags(this ICakeContext context, IList<string> instances, EC2Settings settings)
 {
     return context.CreateManager().DescribeTags(instances, settings);
 }
开发者ID:SharpeRAD,项目名称:Cake.AWS.EC2,代码行数:4,代码来源:EC2Aliases.cs

示例6: UninstallTopshelf

 public static void UninstallTopshelf(this ICakeContext context, FilePath filePath, string instance, int timeout)
 {
     context.CreateManager().UninstallService(filePath, instance, timeout);
 }
开发者ID:SharpeRAD,项目名称:Cake.Topshelf,代码行数:4,代码来源:TopshelfAliases.cs

示例7: TerminateEC2Instance

 public static bool TerminateEC2Instance(this ICakeContext context, EC2Settings settings)
 {
     return context.CreateManager().TerminateInstances(EC2Metadata.InstanceId.Split(','), settings);
 }
开发者ID:SharpeRAD,项目名称:Cake.AWS.EC2,代码行数:4,代码来源:EC2Aliases.cs

示例8: GetPreSignedURL

 public static string GetPreSignedURL(this ICakeContext context, string key, string version, DateTime expires, S3Settings settings)
 {
     return context.CreateManager().GetPreSignedURL(key, version, expires, settings);
 }
开发者ID:SharpeRAD,项目名称:Cake.AWS.S3,代码行数:4,代码来源:S3Aliases.cs

示例9: S3SyncUpload

 public static IList<string> S3SyncUpload(this ICakeContext context, DirectoryPath dirPath, SyncSettings settings)
 {
    return context.CreateManager().SyncUpload(dirPath, settings);
 }
开发者ID:SharpeRAD,项目名称:Cake.AWS.S3,代码行数:4,代码来源:S3Aliases.cs

示例10: GetFileHash

        public static string GetFileHash(this ICakeContext context, FilePath path)
        {
            IFile file = context.FileSystem.GetFile(path);

            return context.CreateManager().GetHash(file);
        }
开发者ID:SharpeRAD,项目名称:Cake.AWS.S3,代码行数:6,代码来源:S3Aliases.cs

示例11: GenerateEncryptionKey

 public static void GenerateEncryptionKey(this ICakeContext context, FilePath filePath, int size)
 {
     context.CreateManager().GenerateEncryptionKey(filePath, size);
 }
开发者ID:SharpeRAD,项目名称:Cake.AWS.S3,代码行数:4,代码来源:S3Aliases.cs

示例12: S3GetHashTag

        public static string S3GetHashTag(this ICakeContext context, string key, string version, S3Settings settings)
        {
            MetadataCollection result = context.CreateManager().GetObjectMetaData(key, version, settings);

            if ((result != null) && result.Keys.Contains("x-amz-meta-hashtag"))
            {
                return result["x-amz-meta-hashtag"];
            }
            else
            {
                return "";
            }
        }
开发者ID:SharpeRAD,项目名称:Cake.AWS.S3,代码行数:13,代码来源:S3Aliases.cs

示例13: S3GetETag

        public static string S3GetETag(this ICakeContext context, string key, string version, S3Settings settings)
        {
            S3Object result = context.CreateManager().GetObject(key, version, settings);

            if (result != null)
            {
                return result.ETag;
            }
            else
            {
                return "";
            }
        }
开发者ID:SharpeRAD,项目名称:Cake.AWS.S3,代码行数:13,代码来源:S3Aliases.cs

示例14: S3LastModified

        public static DateTimeOffset S3LastModified(this ICakeContext context, string key, string version, S3Settings settings)
        {
            S3Object result = context.CreateManager().GetObject(key, version, settings);

            if (result != null)
            {
                return result.LastModified;
            }
            else
            {
                return DateTime.MinValue;
            }
        }
开发者ID:SharpeRAD,项目名称:Cake.AWS.S3,代码行数:13,代码来源:S3Aliases.cs

示例15: InstallTopshelf

 public static void InstallTopshelf(this ICakeContext context, FilePath filePath, TopshelfSettings settings)
 {
     context.CreateManager().InstallService(filePath, settings);
 }
开发者ID:SharpeRAD,项目名称:Cake.Topshelf,代码行数:4,代码来源:TopshelfAliases.cs


注:本文中的this.CreateManager方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。