This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object EventProcessing { | |
@JvmStatic | |
fun main(args: Array<String>) { | |
val streamsManager = StreamsManager() | |
// Get the events, we need those to enrich with | |
val eventProcessor = EventProcessor() | |
// The raw events that originated everything |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package streams.common.kafka.transformers | |
import org.apache.kafka.streams.KeyValue | |
import org.apache.kafka.streams.kstream.Transformer | |
import org.apache.kafka.streams.state.ValueAndTimestamp | |
import org.apache.kafka.streams.processor.PunctuationType | |
import org.apache.kafka.streams.state.KeyValueStore | |
import org.apache.kafka.streams.processor.ProcessorContext | |
import org.apache.kafka.streams.kstream.TransformerSupplier | |
import java.time.Duration |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<entry> | |
<record>513</record> | |
<time>2017/06/27 18:36:10.340</time> | |
<type>Error</type> | |
<source>Editor or Editor Extension</source> | |
<description>Microsoft.VisualStudio.ExtensibilityHosting.InvalidMEFCacheException: The Visual Studio component cache is out of date (assembly: Glyphfriend.VS2017, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null). Please restart Visual Studio.
 at Microsoft.VisualStudio.ExtensibilityHosting.FaultCatchingAssemblyLoader.<>c__DisplayClass17_0.<LoadAssembly>b__0(AssemblyName assemblyNameParam)
 at Microsoft.VisualStudio.ExtensibilityHosting.Utilities.SafeGetOrAdd[TKey,TValue](IDictionary`2 dictionary, TKey key, Object lockObj, Func`2 valueFactory)
 at Microsoft.VisualStudio.ExtensibilityHosting.FaultCatchingAssemblyLoader.LoadAssembly(AssemblyName assemblyName)
 at Microsoft.VisualStudio.Composition.Reflection.ResolverExtensions.Resolve(ConstructorRef constructorRef)
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HTML Approach --> | |
<a href='link'><img src='image-url' alt='image-alt-text'/></a> | |
<!-- Markdown Approach --> | |
[![image-alt-text](image-url)](link) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This throws a "The type or namespace name 'Dictionary<,>' could not be found" compilation exception | |
Config.Settings = new Dictionary<string, string>() | |
{ | |
{ "Foo", "Bar" } | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpPost] | |
[SwaggerOperation("create-member")] | |
[SwaggerResponse(200)] | |
[SwaggerResponse(400, Description = "Invalid Parameters")] | |
public void Create(MemberData member) | |
{ | |
// This works | |
} | |
[HttpPost] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Index route, which I added route parameter to include ID | |
[HttpGet("estimate/{project_ID}")] | |
public IActionResult Index(int project_ID) | |
{ | |
// Any specific reason for the Session? Could | |
// this be resolved from the current user / claims? | |
if(HttpContext.Session.GetInt32("userID") == null) | |
{ | |
return RedirectToAction("Index", "User"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Uninstall VS and the VS installer (if you haven’t already). | |
2. Delete C:\ProgramData\Microsoft\VisualStudio. | |
3. Delete %localappdata%\Microsoft\VisualStudio. | |
4. Delete %appdata%\Microsoft\VisualStudio. | |
5. Open regedit and delete (if they exist): | |
a. HKLM\SOFTWARE\Microsoft\VisualStudio\15.0 | |
b. HKLM\SOFTWARE\WoW6432Node\Microsoft\VisualStudio\15.0 | |
c. HKCU\SOFTWARE\Microsoft\VisualStudio\15.0* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.ComponentModel.Design; | |
using Microsoft.VisualStudio.Shell; | |
using System.Collections.Generic; | |
namespace Glyphfriend.VS2017 | |
{ | |
internal sealed class ToggleLibraryCommand | |
{ | |
public static readonly Guid CommandSet = new Guid("2cd75fc6-9478-422d-ab4b-022fc5fde9bf"); |
NewerOlder