本文整理汇总了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);
}
示例2: StartEC2Instances
public static bool StartEC2Instances(this ICakeContext context, string instances, EC2Settings settings)
{
return context.CreateManager().StartInstances(instances.Split(','), settings);
}
示例3: CreateInvalidation
public static void CreateInvalidation(this ICakeContext context, string distributionId, string item, CloudFrontSettings settings)
{
context.CreateManager().CreateInvalidation(distributionId, new List<string>() { item }, "", settings);
}
示例4: DescribeInstances
public static IList<InstanceStatus> DescribeInstances(this ICakeContext context, IList<string> instances, EC2Settings settings)
{
return context.CreateManager().DescribeInstances(instances, settings);
}
示例5: DescribeTags
public static IList<TagDescription> DescribeTags(this ICakeContext context, IList<string> instances, EC2Settings settings)
{
return context.CreateManager().DescribeTags(instances, settings);
}
示例6: UninstallTopshelf
public static void UninstallTopshelf(this ICakeContext context, FilePath filePath, string instance, int timeout)
{
context.CreateManager().UninstallService(filePath, instance, timeout);
}
示例7: TerminateEC2Instance
public static bool TerminateEC2Instance(this ICakeContext context, EC2Settings settings)
{
return context.CreateManager().TerminateInstances(EC2Metadata.InstanceId.Split(','), settings);
}
示例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);
}
示例9: S3SyncUpload
public static IList<string> S3SyncUpload(this ICakeContext context, DirectoryPath dirPath, SyncSettings settings)
{
return context.CreateManager().SyncUpload(dirPath, settings);
}
示例10: GetFileHash
public static string GetFileHash(this ICakeContext context, FilePath path)
{
IFile file = context.FileSystem.GetFile(path);
return context.CreateManager().GetHash(file);
}
示例11: GenerateEncryptionKey
public static void GenerateEncryptionKey(this ICakeContext context, FilePath filePath, int size)
{
context.CreateManager().GenerateEncryptionKey(filePath, size);
}
示例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 "";
}
}
示例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 "";
}
}
示例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;
}
}
示例15: InstallTopshelf
public static void InstallTopshelf(this ICakeContext context, FilePath filePath, TopshelfSettings settings)
{
context.CreateManager().InstallService(filePath, settings);
}