public static void RequestBook(ReservationRequest request) { if (_app != null) { _app.RequestBook(request); } }
public static void NewRequest(ReservationRequest request) { if (_app != null) { _app.AddNewRequest(request); } }
protected override void Execute(CodeActivityContext context) { // Open the config file and get the Request Address Configuration config = ConfigurationManager .OpenExeConfiguration(ConfigurationUserLevel.None); AppSettingsSection app = (AppSettingsSection)config.GetSection("appSettings"); // Create a ReservationRequest class and populate // it with the input arguments ReservationRequest r = new ReservationRequest ( Title.Get(context), Author.Get(context), ISBN.Get(context), new Branch { BranchName = app.Settings["Branch Name"].Value, BranchID = new Guid(app.Settings["ID"].Value), Address = app.Settings["Address"].Value } ); // Store the request in the OutArgument Request.Set(context, r); // Store the address in the OutArgument RequestAddress.Set(context, app.Settings["Request Address"].Value); }
public ReservationResponse(ReservationRequest request, bool reserved, Branch provider) { _RequestID = request.RequestID; _Reserved = reserved; _Provider = provider; }
protected override void Execute(CodeActivityContext context) { // Open the config file and get the Request Address Configuration config = ConfigurationManager .OpenExeConfiguration(ConfigurationUserLevel.None); AppSettingsSection app = (AppSettingsSection)config.GetSection("appSettings"); // Create a ReservationRequest class and populate // it with the input arguments ReservationRequest r = new ReservationRequest ( Title.Get(context), Author.Get(context), ISBN.Get(context), new Branch { BranchName = app.Settings["Branch Name"].Value, BranchID = new Guid(app.Settings["ID"].Value), Address = app.Settings["Address"].Value }, context.WorkflowInstanceId ); // Store the request in the OutArgument Request.Set(context, r); // Store the address in the OutArgument RequestAddress.Set(context, app.Settings["Request Address"].Value); }
public void RequestBook(ReservationRequest request) { // Setup a dictionary object for passing parameters Dictionary <string, object> parameters = new Dictionary <string, object>(); parameters.Add("request", request); parameters.Add("Writer", new ListBoxTextWriter(lstEvents)); WorkflowApplication i = new WorkflowApplication(new ProcessRequest(), parameters); request.InstanceID = i.Id; _incomingRequests.Add(i.Id, i); i.Run(); }
public static void NewRequest(ReservationRequest request) { if (_app != null) _app.AddNewRequest(request); }
public static void RequestBook(ReservationRequest request) { if (_app != null) _app.RequestBook(request); }
public void AddNewRequest(ReservationRequest request) { this.requestList.Dispatcher.BeginInvoke (new Action(() => this.requestList.Items.Add(request))); }
public void RequestBook(ReservationRequest request) { // Setup a dictionary object for passing parameters Dictionary<string, object> parameters = new Dictionary<string, object>(); parameters.Add("request", request); parameters.Add("Writer", new ListBoxTextWriter(lstEvents)); WorkflowApplication i = new WorkflowApplication(new ProcessRequest(), parameters); request.InstanceID = i.Id; _incomingRequests.Add(i.Id, i); i.Run(); }
public void RequestBook(ReservationRequest request) { ApplicationInterface.RequestBook(request); }