Exemple #1
0
 public AskActivity(IOutVariable <ICanTell> actorRef, IOutVariable request, IInVariable response = null, IOutVariable <TimeSpan> timeout = null)
 {
     ActorRef = actorRef;
     Request  = request;
     Response = response;
     Timeout  = timeout;
 }
 public LogCriticalActivity(ILogger logger,
                            IOutVariable <string> message,
                            IOutVariable <object[]> args       = null,
                            IOutVariable <EventId> eventId     = null,
                            IOutVariable <Exception> exception = null)
     : base(logger, message, args, eventId, exception)
 {
 }
Exemple #3
0
 public DeserializeConverter(
     IOutVariable <JsonSerializerSettings> settings = null,
     IOutVariable <JsonConverter[]> converters      = null,
     IOutVariable <Type> type = null,
     IOutVariable <JsonSerializer> serializer = null)
 {
     Settings   = settings;
     Converters = converters;
     Type       = type;
     Serializer = serializer;
 }
 public SerializeConverter(
     IOutVariable <Formatting> formatting           = null,
     IOutVariable <JsonSerializerSettings> settings = null,
     IOutVariable <JsonConverter[]> converters      = null,
     IOutVariable <Type> type = null)
 {
     Formatting = formatting;
     Settings   = settings;
     Converters = converters;
     Type       = type;
 }
        public LogActivity(ILogger logger,
                           IOutVariable <string> message,
                           IOutVariable <object[]> args       = null,
                           IOutVariable <EventId> eventId     = null,
                           IOutVariable <Exception> exception = null)
        {
            _logger = logger;

            Message   = message;
            Args      = args;
            EventId   = eventId;
            Exception = exception;
        }
        protected sealed override void initialize()
        {
            if (Args == null)
            {
                Args = new NullVariable <object[]>();
            }

            if (EventId == null)
            {
                EventId = new NullVariable <EventId>();
            }

            if (Exception == null)
            {
                Exception = new NullVariable <Exception>();
            }
        }
 public ProcessExecuteActivity(
     IOutVariable <ProcessStartInfo> startInfo = null,
     IOutVariable <Action <DataReceivedEventArgs> > dataReceiveAction  = null,
     IOutVariable <Action <DataReceivedEventArgs> > errorReceiveAction = null,
     IOutVariable <int> timeout             = null,
     IInVariable <int> exitCode             = null,
     IInVariable <DateTime> startTime       = null,
     IInVariable <DateTime> exitTime        = null,
     IConverter <int, bool> resultConverter = null)
 {
     StartInfo          = startInfo;
     DataReceiveAction  = dataReceiveAction;
     ErrorReceiveAction = errorReceiveAction;
     Timeout            = timeout;
     ExitCode           = exitCode;
     StartTime          = startTime;
     ExitTime           = exitTime;
     ResultConverter    = resultConverter;
 }
 public RequestVariable(
     IOutVariable resource                              = null,
     IOutVariable <Method> method                       = null,
     IOutVariable <DataFormat> dataFormat               = null,
     IDictionary <string, IOutVariable> headers         = null,
     IDictionary <string, IOutVariable> queryParameters = null,
     IDictionary <string, IOutVariable> cookies         = null,
     IOutVariable body = null,
     IConverter <IRestRequest> converter = null)
     : base(converter)
 {
     Resource        = resource;
     Method          = method;
     DataFormat      = dataFormat;
     Headers         = headers;
     QueryParameters = queryParameters;
     Cookies         = cookies;
     Body            = body;
 }
 public ProcessStartInfoVariable(
     IOutVariable <string> fileName             = null,
     IOutVariable <string> arguments            = null,
     IOutVariable <bool> createNoWindow         = null,
     IOutVariable <bool> useShellExecute        = null,
     IOutVariable <bool> redirectStandardInput  = null,
     IOutVariable <bool> redirectStandardOutput = null,
     IOutVariable <bool> redirectStandardError  = null,
     IOutVariable <string> domain                   = null,
     IOutVariable <string> userName                 = null,
     IOutVariable <SecureString> password           = null,
     IOutVariable <bool> errorDialog                = null,
     IOutVariable <IntPtr> errorDialogParentHandle  = null,
     IOutVariable <bool> loadUserProfile            = null,
     IOutVariable <string> passwordInClearText      = null,
     IOutVariable <Encoding> standardOutputEncoding = null,
     IOutVariable <Encoding> standardErrorEncoding  = null,
     IOutVariable <string> verb = null,
     IOutVariable <ProcessWindowStyle> windowStyle = null,
     IOutVariable <string> workingDirectory        = null)
 {
     FileName               = fileName;
     Arguments              = arguments;
     CreateNoWindow         = createNoWindow;
     UseShellExecute        = useShellExecute;
     RedirectStandardInput  = redirectStandardInput;
     RedirectStandardOutput = redirectStandardOutput;
     RedirectStandardError  = redirectStandardError;
     Domain                  = domain;
     UserName                = userName;
     Password                = password;
     ErrorDialog             = errorDialog;
     ErrorDialogParentHandle = errorDialogParentHandle;
     LoadUserProfile         = loadUserProfile;
     PasswordInClearText     = passwordInClearText;
     StandardOutputEncoding  = standardOutputEncoding;
     StandardErrorEncoding   = standardErrorEncoding;
     Verb             = verb;
     WindowStyle      = windowStyle;
     WorkingDirectory = workingDirectory;
 }
Exemple #10
0
 public UsingActivity(IOutVariable <IDisposable> disposable, IActivity activity)
 {
     Disposable = disposable;
     Activity   = activity;
 }
Exemple #11
0
 public NotNullCondition(IOutVariable value)
 {
     Value = value;
 }
 public FileWriteAllTextActivity(IOutVariable <string> path, IOutVariable <string> contents, IOutVariable <Encoding> encoding = null)
 {
     Path     = path;
     Contents = contents;
     Encoding = encoding;
 }
 public StatusCodeResultVariable(IOutVariable statusCode, IConverter <IActionResult> converter = null)
     : base(converter)
 {
     StatusCode = statusCode;
 }
Exemple #14
0
 public LessThanCondition(IOutVariable value1, IOutVariable value2)
 {
     Value1 = value1;
     Value2 = value2;
 }
Exemple #15
0
 public FileMoveActivity(IOutVariable <string> sourceFileName, IOutVariable <string> destFileName)
 {
     SourceFileName = sourceFileName;
     DestFileName   = destFileName;
 }
Exemple #16
0
 public TrueCondition(IOutVariable <bool> value)
 {
     Value = value;
 }
Exemple #17
0
 public CountVariable(IOutVariable <IEnumerable> collection)
 {
     Enumerable = collection;
 }
 public FileReadAllBytesActivity(IOutVariable <string> path, IInVariable <byte[]> bytes)
 {
     Path  = path;
     Bytes = bytes;
 }
Exemple #19
0
 public DelayActivity(IOutVariable <int> duration)
 {
     Duration = duration;
 }
Exemple #20
0
 public RestActivity(IOutVariable baseUrl, IOutVariable <IRestRequest> request, IInVariable <IRestResponse> response)
 {
     BaseUrl  = baseUrl;
     Request  = request;
     Response = response;
 }
Exemple #21
0
 public BadRequestObjectResultVariable(IOutVariable error, IConverter <IActionResult> converter = null)
     : base(converter)
 {
     Error = error;
 }
Exemple #22
0
 public GreaterThanCondition(IOutVariable value1, IOutVariable value2)
 {
     Value1 = value1;
     Value2 = value2;
 }
Exemple #23
0
 public DirectoryCreateActivity(IOutVariable <string> path)
 {
     Path = path;
 }
 public CreatedResultVariable(ControllerBase controller, IOutVariable <string> resource, IOutVariable value)
     : base(controller)
 {
     Resource = resource;
     Value    = value;
 }
Exemple #25
0
 public AssignActivity(IInVariable to, IOutVariable value, IConverter converter = null)
 {
     To        = to;
     Value     = value;
     Converter = converter;
 }
Exemple #26
0
 public TellActivity(IOutVariable actorRef, IOutVariable message, IOutVariable <IActorRef> sender)
 {
     ActorRef = actorRef;
     Message  = message;
     Sender   = sender;
 }
Exemple #27
0
 public SwitchActivity(IOutVariable value, IDictionary <object, IActivity> cases, IActivity default_ = null)
 {
     Value   = value;
     Cases   = cases;
     Default = default_;
 }
Exemple #28
0
 public ConsoleWriteLineActivity(IOutVariable value)
 {
     Value = value;
 }
Exemple #29
0
 public LockActivity(IOutVariable <SemaphoreSlim> lockObject, IActivity activity)
 {
     LockObject = lockObject;
     Activity   = activity;
 }
Exemple #30
0
 public EqualsCondition(IOutVariable value1, IOutVariable value2)
 {
     Value1 = value1;
     Value2 = value2;
 }