Quantcast
Channel: User MikelThief - Stack Overflow
Browsing latest articles
Browse All 26 View Live
↧

Comment by MikelThief on Sudden memory consumption jump resulting in out of...

@Damien_The_Unbeliever yes, the first way i though about was to use producer-consumer pattern to pararellize work. Could you provide me with a code sample? (i suspect you advice to use LINQ/PLINQ)

View Article


Comment by MikelThief on Sudden memory consumption jump resulting in out of...

Thanks a lot for you answer. Actually, yours is a little faster on IO than mine, but takes inly 30% of CPU load (compared to 80% of my solution). Nevertheless, almost at the same moment... program...

View Article


Comment by MikelThief on Specify proper route to call a WebApi 2 Controller...

Indeed outes.MapHttpRoute("DefaultApiWithAction", "Api/{controller}/{action}"); will process route-attributes you specify just before your method in controller. You need to specify a custom one - the...

View Article

Comment by MikelThief on Response cookies are not places inside Flurl...

@ToddMenier please see the attached screenshot: imgur.com/a/5nQ8cpa I didn't mask anything as the data I described here can be reached by anyone :)

View Article

Answer by MikelThief for C++: Prompt Requires Data to be Inputted Multiple...

Your code could look like this: #include <iostream> #include <ctime>//A user stated that using this piece of code would make a true randomization process. #include <cstdlib> using...

View Article


Singly linked list copy constructor [duplicate]

This question already has an answer here: What is The Rule of Three? 8 answers I am trying to solve why my copy constructor refuses to work. I have class Car: class Car{ private: char* make; int...

View Article

Operator= overload failure with use of copy constructor of other class

I am trying to fix a problem related to overloading assigment operator to be able to assign one list to another. I have two classes: class CarList{ private: Car* head; void clear(); public: CarList();...

View Article

Answer by MikelThief for How to convert...

Try to create an OracleString variable that will be a variable holding one element at a time from an array. Let's say this variable will be called oraStringVar. Assign a value to it by: oraStringVar =...

View Article


Answer by MikelThief for Increase performance or Code tuning

Depending on the situation (apply profiling or state your target to let us know whether operation is IO/CPU-bound) you may use LINQ or PLINQ or a Producer-Consumer Pattern. For IO-bound operations LINQ...

View Article


Hangfire Dashboard links point to wrong routes

The problem is, when the app is deployed to a non root context (i.e. http://root/someAppName/ the dashboard is by default accessible at http://root/someAppName/hangfire). But the dashboard lacks any...

View Article

Answer by MikelThief for How to pass result from parent job to its continuation

It appeared that it is enough to use the attribute with pushResultsequal to true and then set the return type of the function to e. g. string. Then one can access this value produced by parent in...

View Article

How to pass result from parent job to its continuation

Since version 1.7.8 it is possible to pass results from parent job to continuation jobs in Hangfire. However there is no documentation or example supplied. While browsing code I realized that I need to...

View Article

Comment by MikelThief on Why Hangfire doesn't process recurring jobs in...

Please attach you cron expression as well.

View Article


Comment by MikelThief on How can I publish Hangfire Dashboard for a custom...

Does this answer your question? Exposing hangfire without auth

View Article

Answer by MikelThief for Hangfire Recurring jobs not working - throw...

A good solution is to have connectionstring set up part as IOption or something similar like binding configuration to some object and then contructor-injecting this object to a class which contains...

View Article


Answer by MikelThief for How can I publish Hangfire Dashboard for a custom...

As you asked in comments comments, if you want to set up public access to your dashboard without app running at localhost, you need to add custom DashboardAuthorizationFilter which will always return...

View Article

Comment by MikelThief on How to process Hangfire BackgroudJobs Singly instead...

@Paul You have posted the exact doc source, so I cannot provide anything else. In case of poor doc I advice to take a look at source code what I usually do in addition to docs.

View Article


Comment by MikelThief on Access to hangfire dashboard using Angular/WebApi

You should give more info. How routing is set up? What .NET Core/Framework are you using? Likely this route is already taken (overriden) by some other setting.

View Article

Answer by MikelThief for how to pause hangfire's job? between certain hours

You need to provide a correct cron expression to the recurring job which will fire your desired code.For example, this cron expression runs the job every hour from 8AM to 8PM.0 0 8-16 ? * * *Cron is a...

View Article

Answer by MikelThief for How can we let recurring job only trigger on one...

You may either use paid Hangfire.Pro package with Mutex feature or decorate your job function with [DisableConcurrentExecution] attribute.

View Article

Comment by MikelThief on How to ensure Hangfire jobs scheduled just once in...

@LexLi what kind of issues are you talking about in the article? This is very low-effort article since it does not explain why Hangfire is bad and recommends to follow an approach which does not cover...

View Article


Answer by MikelThief for How to ensure Hangfire jobs scheduled just once in...

Please have a look at Hangfire.RecurringJobCleanUpManager. It might give you an example of how to deal with rescheduling recurring jobs.There is no magic under the hood. It basically fetches all...

View Article


Answer by MikelThief for Delete all the Hangfire jobs

To delete recurring job (what i think you meant) you should firstly ask your storage to provide you all recurring jobs you have set:jobStorage.GetConnection().GetRecurringJobs(); // where jobStorage is...

View Article

Comment by MikelThief on Sudden memory consumption jump resulting in out of...

Thanks for clarification. I found out that somehow StreamReader is responsible for throwing the exception. Even if i apply DiscardBufferedData() it does not help. Seems it has some problems reading...

View Article
Browsing latest articles
Browse All 26 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>