Beispiel #1
0
        public NServiceBusInstallOptions Install()
        {
            var protoInstallTask = new ProtoNServiceBusInstallTask(new DotNetPath(), this.location);

            protoServer.RegisterProtoTask(protoInstallTask);
            return(protoInstallTask);
        }
        /// <summary>
        /// Removes all users/groups who are not inherited or in the preserve list (defined in options).
        /// </summary>
        public ClearAclOptions Clear()
        {
            var proto = new ProtoPathClearAclsTask(_path);

            _server.RegisterProtoTask(proto);

            return(proto);
        }
Beispiel #3
0
        public static CommandLineOptions CommandLine(this ProtoServer protoServer, string command)
        {
            var proto = new ProtoCommandLineTask(command);

            protoServer.RegisterProtoTask(proto);
            return(proto);
        }
Beispiel #4
0
        public static MsmqOptions Msmq(this ProtoServer protoServer)
        {
            var proto = new ProtoMsmqTask();

            protoServer.RegisterProtoTask(proto);
            return(proto);
        }
Beispiel #5
0
        public static DsnOptions CreateDSN(this ProtoServer protoServer, string dsnName)
        {
            var proto = new ProtoDsnTask(dsnName);

            protoServer.RegisterProtoTask(proto);
            return(proto);
        }
Beispiel #6
0
        public static FilePokeOptions FilePoke(this ProtoServer protoServer, string filePath, Encoding encoding)
        {
            var proto = new ProtoFilePokeTask(filePath, encoding);

            protoServer.RegisterProtoTask(proto);
            return(proto);
        }
Beispiel #7
0
        public static void NServiceBusHost(this ProtoServer server, Action <NServiceBusHostOptions> action)
        {
            var cfg = new NServiceBusHostConfigurator(new DotNetPath());

            action(cfg);
            server.RegisterProtoTask(cfg);
        }
Beispiel #8
0
        public static XmlPokeOptions XmlPoke(this ProtoServer protoServer, string filePath)
        {
            var proto = new ProtoXmlPokeTask(filePath);

            protoServer.RegisterProtoTask(proto);
            return(proto);
        }
Beispiel #9
0
        public static XmlPokeOptions XmlPoke(this ProtoServer protoServer, string filePath, IDictionary <string, string> namespacePrefixes)
        {
            var proto = new ProtoXmlPokeTask(filePath, namespacePrefixes);

            protoServer.RegisterProtoTask(proto);
            return(proto);
        }
Beispiel #10
0
        public static void RavenDb(this ProtoServer server, Action <RavenDbOptions> action)
        {
            var cfg = new RavenDbConfigurator(new DotNetPath());

            action(cfg);
            server.RegisterProtoTask(cfg);
        }
Beispiel #11
0
        public static void SqlReports(this ProtoServer server, Action <ReportOptions> action)
        {
            var cxt = new ProtoSsrsTask();

            server.RegisterProtoTask(cxt);
            action(cxt);
        }
Beispiel #12
0
        public static void Topshelf(this ProtoServer server, Action <TopshelfOptions> action)
        {
            var cfg = new TopshelfConfigurator(new DotNetPath());

            action(cfg);
            server.RegisterProtoTask(cfg);
        }
Beispiel #13
0
        public static FolderShareOptions ShareFolder(this ProtoServer protoServer, string name)
        {
            var proto = new ProtoFolderShareTask(name);

            protoServer.RegisterProtoTask(proto);
            return(proto);
        }
Beispiel #14
0
        public static RegistryKeyOptions CreateRegistryKey(this ProtoServer protoServer, RegistryHive hive, string name)
        {
            var proto = new ProtoCreateRegistryKeyTask(hive, name);

            protoServer.RegisterProtoTask(proto);
            return(proto);
        }
Beispiel #15
0
        public static UnzipOptions UnzipArchive(this ProtoServer protoServer, string archiveFilename)
        {
            var proto = new ProtoUnzipArchiveTask(new DotNetPath(), archiveFilename);

            protoServer.RegisterProtoTask(proto);
            return(proto);
        }
Beispiel #16
0
        public static RoundhousEOptions RoundhousE(this ProtoServer protoServer)
        {
            var proto = new RoundhousEProtoTask();

            protoServer.RegisterProtoTask(proto);
            return(proto);
        }
Beispiel #17
0
        public static RenameOptions RenameFile(this ProtoServer protoServer, string file)
        {
            var proto = new ProtoRenameTask(new DotNetPath(), file);

            protoServer.RegisterProtoTask(proto);
            return(proto);
        }
Beispiel #18
0
        public static FileCopyOptions CopyFile(this ProtoServer protoServer, string from)
        {
            var proto = new ProtoCopyFileTask(new DotNetPath(), from);

            protoServer.RegisterProtoTask(proto);
            return(proto);
        }
Beispiel #19
0
        public static ExistsOptions Exists(this ProtoServer protoserver, string reason, bool shouldAbortOnError)
        {
            var proto = new ProtoExistsTask(new DotNetPath(), reason, shouldAbortOnError);

            protoserver.RegisterProtoTask(proto);
            return(proto);
        }
        public GrantReadCertificateOptions GrantReadPrivateKey()
        {
            var proto = new ProtoGrantReadX509CertificatePrivateKeyTask(_thumbprint);

            _server.RegisterProtoTask(proto);

            return(proto);
        }
Beispiel #21
0
        public static CopyOptions CopyDirectory(this ProtoServer protoServer, Action <FromOptions> a)
        {
            var proto = new ProtoCopyDirectoryTask(new DotNetPath());

            a(proto);
            protoServer.RegisterProtoTask(proto);
            return(proto);
        }
Beispiel #22
0
        public static SqlOptions SqlInstance(this ProtoServer protoServer, string instanceName)
        {
            var proto = new ProtoMsSqlTask();

            proto.InstanceName = instanceName;
            protoServer.RegisterProtoTask(proto);
            return(proto);
        }
Beispiel #23
0
        public static IisSiteOptions Iis7Site(this ProtoServer protoServer, string websiteName)
        {
            var task = new IisProtoTask(websiteName, new DotNetPath())
            {
                Version = IisVersion.Seven,
            };

            protoServer.RegisterProtoTask(task);
            return(task);
        }
Beispiel #24
0
        public IisApplicationPoolOperation ApplicationPool(string applicationPoolName)
        {
            var task = new IisApplicationPoolOperationProtoTask(applicationPoolName)
            {
                Version = Version
            };

            _protoServer.RegisterProtoTask(task);
            return(task);
        }
Beispiel #25
0
        public static IisSiteOptions Iis7Site(this ProtoServer protoServer, string websiteName, string pathForWebsite, int port)
        {
            var task = new IisProtoTask(websiteName, new DotNetPath())
            {
                Version        = IisVersion.Seven,
                PathForWebsite = pathForWebsite,
                PortForWebsite = port
            };

            protoServer.RegisterProtoTask(task);
            return(task);
        }
Beispiel #26
0
        public MsSqlUserOptions CreateUserFor(string account)
        {
            var proto = new ProtoCreateUserTask(_database, account);

            _server.RegisterProtoTask(proto);
            return(proto);
        }
Beispiel #27
0
        public WinServiceOptions Do(Action <ProtoServer> registerAdditionalActions)
        {
            _protoServer.RegisterProtoTask(new ProtoWinServiceStopTask(_serviceName));

            //child task
            registerAdditionalActions(_protoServer);


            _protoServer.RegisterProtoTask(new ProtoWinServiceStartTask(_serviceName));

            return(this);
        }
Beispiel #28
0
 public static void Pause(this ProtoServer server, string messageToDisplay)
 {
     server.RegisterProtoTask(new PauseProtoTask(messageToDisplay));
 }
Beispiel #29
0
        public static void Wait(this ProtoServer protoServer, TimeSpan span)
        {
            var proto = new WaitProtoTask(span);

            protoServer.RegisterProtoTask(proto);
        }
Beispiel #30
0
        public static void Note(this ProtoServer protoServer, dropkick.DeploymentModel.DeploymentItemStatus status, string messageFormat, params object[] args)
        {
            var proto = new NoteProtoTask(status, messageFormat, args);

            protoServer.RegisterProtoTask(proto);
        }